Fixes #43, fixes #82, by pressing new modifier keys before releasing the old ones to avoid triggering actions in applications that recognize the old keys.
For example, if we bind alt+f to ctrl+right, before this change, the following key sequence is generated with alt+f :
So the difference here is that we press the ctrl key before releasing alt, so will not trigger apps like Firefox to show hide the menu when alt+f is used, and a single press and release of the alt key will still show the menu as their normal behavior.
As far as I can observe, this is also the behavior of AutoHotKey on Windows.
Fixes #43, fixes #82, by pressing new modifier keys before releasing the old ones to avoid triggering actions in applications that recognize the old keys.
For example, if we bind alt+f to ctrl+right, before this change, the following key sequence is generated with alt+f :
The press + release of the alt key (both at the start and end of the sequence) is what's causing apps like Firefox to show/focus the menu.
After this change, the following key sequence is generated with alt+f:
So the difference here is that we press the ctrl key before releasing alt, so will not trigger apps like Firefox to show hide the menu when alt+f is used, and a single press and release of the alt key will still show the menu as their normal behavior.
As far as I can observe, this is also the behavior of AutoHotKey on Windows.