houmain / keymapper

A cross-platform context-aware key remapper.
GNU General Public License v3.0
257 stars 21 forks source link

[suggestion] Add a timeout function to achieve xcape-like effects #40

Closed yyy33 closed 1 year ago

yyy33 commented 1 year ago

For example, I have the following two mappings, which implement the function of sending esc with a click of ctrl,But I want the second mapping to take effect only when I press the key and release it within 500ms, and nothing if it exceeds 500ms. In the actual use of the process, I think this timeout is quite helpful, otherwise often will accidentally touch the esc key

ControlLeft{Any} >> ControlLeft{Any}
ControlLeft >> Escape
houmain commented 1 year ago

Thanks for the suggestion. Never heard of xcape or thought about this use case. Seems to be quite prevalent. There is another similar request #32. I will think about how this could be achieved.

yyy33 commented 1 year ago

Thanks for the suggestion. Never heard of xcape or thought about this use case. Seems to be quite prevalent. There is another similar request #32. I will think about how this could be achieved.

Great!

houmain commented 1 year ago

Hi, this should work now in the 2.4.0 release. See No key.

yyy33 commented 1 year ago

Hi, this should work now in the 2.4.0 release. See No key.

Great, thanks for your hard work!