My numeric keypad has somehow got into a "mouse emulation" mode where the number keys just move the mouse pointer around (2 = down; 8 = up, 6 = right, etc). Anyone know how to make it work normally again?
None of the other numpad keys work either (I first noticed the whole thing when Ctrl + ÷ (numpad division sign) no longer produced "line comment" in IntelliJ IDEA). Toggling num lock doesn't affect this (though the indicator LED works as usual).
I'm using GNOME on Lucid Lynx (10.4).
Or you can press SHIFT+NUMLOCK
From the menu, use
System > Preferences > Keyboard
On the tab titled "Mouse Keys" there is a check box to toggle "Pointer can be controlled using the keypad" .
You can disable this behaviour there.
You can permanently disable this incredibly annoying keybinding by editing
/usr/share/X11/xkb/compat/complete
in superuser mode (ie,gksudo gedit /usr/share/X11/xkb/compat/complete
) and commenting out mousekeys & accessx(full):In Ubuntu 12.10, to solve this problem you can follow the below steps:
as root user, type the following command that will completely inhibit the feature:
Apart from Shift+NumLock (bound to the corresponding action to enable/disable this mode), an additional xkbset utility can be used to control this from command line:
Learned this tip from Enabling mousekeys.
Just a heads-up, in Ubuntu 12.04 (Unity) this "feature" can be enabled and disabled in the Universal Access dialogue under the Pointing and Clicking tab.
On my 20.04 I could only get out of that mode using the following command which has been kindly suggested here:
Maybe too many system upgrades and prior fiddling made it the only way out for me.