Comment 19 for bug 1215826

Revision history for this message
Chris Morgan (chris.morgan) wrote :

My experience after the first few minutes, where it was in flux, sometimes operating as Caps_Lock and sometimes as BackSpace, was that it settled down to acting as BackSpace (as configured) but would not repeat—viz., holding backspace deleted many characters, while holding caps lock deleted only one character.

I've found that using xmodmap to remap the caps lock key's keycode to BackSpace works to make it repeat correctly.

For me, the Caps Lock key is keycode 66; I believe this may vary from machine to machine. If that be so, you can find out what it is for you with ``xev`` (run it, press the caps lock key, look for the keycode part).

    xmodmap -e 'keycode 66 = BackSpace'

I believe that putting the "keycode 66 = BackSpace" line in ~/.Xmodmap is supposed to fix it automatically on login; I don't know as I haven't closed my session since applying this fix. If not, I guess it could go somewhere else. (Something which would be executed at X startup time?)