With the AutoHotKey
script
LWin::
return
the Left Windows
key can be completely disabled. Not only is a simple Left Windows
hit disabled, but also any other combinations including a Left Windows
key, has no effect, as the Left Windows
key were not pressed.
For example: LWin+E
, which normally opens an Explorer window, will just send an "e
".
Never the less, as soon as a new mapping using the Left Windows key is defined, all the rest of the Left Windows
keybindings return active. For example, with the script:
LWin::
return
LWin & a::
Send foo
return
LWin + a
will print "foo
". Left Windows
alone will do nothing. But, magically, Left Windows + E
will open an Explorer Window.
How could I disable a modifier (like LWin
, RWin
, LAlt
, RAlt
, LCtrl
, RCtrl
) so that none of the keybinding (but the ones I explicitily defined) run?