Replies: 4 comments
-
No, there is not. You could attempt some trickery involving `events.KEYPRESS`, but I don't know how successful you'd be.
|
Beta Was this translation helpful? Give feedback.
-
I tried this just now and it worked. The print statement is just there temporarily so you can see the code for each key that is pressed, in case your Alt key is a different code, or you want to map both Alt keys.
|
Beta Was this translation helpful? Give feedback.
-
That's the kind of trickery I had in mind. Thanks for coming up with a working example :)
|
Beta Was this translation helpful? Give feedback.
-
Thanks. I also experimented a little and came up with this:
It tries to discard the event if the time elapsed between keypresses is more than one second (to avoid reacting every second time the Alt key is pressed and only doing it if chances are this was really a double tap). It can still be improved. |
Beta Was this translation helpful? Give feedback.
-
Is there a way to assign a command to "Alt+Alt" (double tap key binding)?
Beta Was this translation helpful? Give feedback.
All reactions