how to remap Ctrl to Escape if pressed and released on its own
- by psvm
I want to remap Control, so that:
A. If it is pressed and released with no other key, it acts as Escape.
B. If it is pressed & held together with another key, it acts as Control (no change in behavior in this case).
I'm aware of How do I remap certain keys?, so I suspect it may be done with xmodmap. But that answer does not explain how to map…