Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local closetap = doubletap.create({
- delay = 300,
- lockdelay = 500,
- action = function()
- local c = mouse.object_under_pointer()
- if not c then return end
- if not c.xkeys then return end
- if c.xutil then return end
- if c.kill then
- if c.instance == "Navigator" then
- client.focus = c
- root.fake_input('key_release', "Super_L")
- root.fake_input('key_release', "Super_R")
- root.fake_input('key_release', "Delete")
- root.fake_input('key_press', "Control_L")
- root.fake_input('key_press', "w")
- root.fake_input('key_release', "w")
- root.fake_input('key_release', "Control_L")
- else
- c:kill()
- end
- end
- end
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement