Skip to main content

Thread: remap Ctrl key?


how can remap (left) control key that:
1. if pressed , released no other key, acts escape.
2. if pressed & held key, acts control (no change in behavior in case).

closest able is:
code:
xmodmap -e 'remove control = control_l'  xmodmap -e 'keysym control_l = escape'  xmodmap -e 'add control = escape'
the problem pressing ctrl+a sends escape followed ctrl+a (rather ctrl+a) when key pressed. bad since, example, in vim's insert mode, cannot use ctrl+r paste register, because first sends escape throws me normal mode...

i see complication: when press escape want undecided whether that's escape or control until either press key @ same time (making control)or release escape (making escape). don't want change "label" of key, actions: ignore press, turn release without other keys press followed release, turn press of key whilst holding control press of control followed press of other key. sounds nasty me... complicated.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] remap Ctrl key?


Ubuntu

Comments

Popular posts from this blog

Could not place because the source rectangle is empty

Thread: Using smartcard reader with vpnc

Adobe Font Folio 7.0 or just 7?