How do you map a solo press of a modifier key to its own function or mapping on Windows?
Posted
by
Conrad.Dean
on Super User
See other posts from Super User
or by Conrad.Dean
Published on 2012-10-04T00:03:48Z
Indexed on
2012/10/05
9:40 UTC
Read the original article
Hit count: 295
Today on hacker news there was a clever article on custom shortcut keys.
The author talks about a technique for remapping a modifier key such as CTRL to ESC if CTRL were pressed without a modifier. This is useful in vim because of how often you need to press ESC.
Another technique he describes is mapping the open parenthesis, (
to the left shift key, and )
to the right shift key.
If another key is pressed when shift is held down, the shift key behaves normally.
The author describes the software he uses on OSX, but is there a way to do this on Windows?
I've heard of AutoHotKey but it seems to only fire macros when simple keys are pressed, rather than the conditional state switch that this would require.
© Super User or respective owner