NumLock turned off on layout switch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
X.Org X server |
Unknown
|
Medium
|
|||
xorg-server (Ubuntu) |
Confirmed
|
High
|
Unassigned |
Bug Description
Extracting from bug 1218322, confirmed there by multiple users:
When switching the keyboard layout using a shortcut (such as Alt+Shift), NumLock functionality is (mostly) turned off. More precisely: it goes into an inconsistent state where pressing numpad 5 inserts the digit 5, but the other numpad keys move the cursor. Pressing the NumLock key turns it off completely (pressing numpad 5 no longer does anything), and pressing once again turns it on.
This means that if someone prefers to have the NumLock functionality switched on all the time, they have to press the NumLock key twice after each layout change. I find this a huge usability problem.
(I don't have a LED, so I cannot tell how that one is lit.)
The bug is not present when changing the layout via the indicator applet.
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: gnome-settings-
ProcVersionSign
Uname: Linux 3.11.0-12-generic x86_64
ApportVersion: 2.12.5-0ubuntu2.1
Architecture: amd64
Date: Sun Nov 3 21:54:37 2013
InstallationDate: Installed on 2012-05-30 (522 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
MarkForUpload: True
SourcePackage: gnome-settings-
UpgradeStatus: Upgraded to saucy on 2013-10-12 (21 days ago)
Changed in gnome-settings-daemon (Ubuntu): | |
importance: | Undecided → Low |
tags: | added: keyboard-layout-switching-related |
Changed in xorg-server: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
tags: |
added: keyboard-layout-switching-hotkeys removed: keyboard-layout-switching-related |
tags: | added: trusty |
Changed in xorg-server: | |
status: | Confirmed → Unknown |
tags: | removed: saucy trusty |
It seems the bug lies somewhere deeper under, probably in xorg.
Turn on NumLock. Switch layout either using the indicator, or by executing "setxkbmap us" or something alike. Try the numpad keys: they work as expected (they insert digits). Press and release any of the modifier keys. Try the numpad keys again: they are in this inconsistent state where 5 is a digits, the rest are cursor keys.
So, a layout switch followed by a modifier press/release leads to this faulty state.
As a special case, if a layout switch is performed by a shortcut key, the modifier press/release happens as part of this key sequence, so NumLock becomes inconsistent immediately.