Comment 1 for bug 35080

Revision history for this message
Paul Sladen (sladen) wrote :

By default X (ab)uses the NumLock key to switch the number pad keys into Mouse-emulation mode, where the number keys control the pointer.

On the ThinkPads, the sequence:

  Shift-ScrLock

produces the NumLock key (code 77). This needs to be mapped by the correct behaviour in X, in this case with:

  xmodmap -e 'keycode 77 = Num_Lock'

I'm not sure how to get this automatically loaded for ThinkPads. I tried doing hacks in 'hotkey-setup', since that already has code to detect the model of computer, but that seems to make things things worse.

The long-term solution may well be just to have NumLock do what NumLock should do, rather than abusing it to do another function. Especially since the accessibility frameworks have better of exposing the control this functionality.