** Changed in: unity (Ubuntu) Assignee: (unassigned) => Andrea Azzarone (andyrock)
** Changed in: unity Assignee: (unassigned) => Andrea Azzarone (andyrock) ** Changed in: unity Importance: Undecided => Medium ** Changed in: unity Status: New => In Progress ** Changed in: unity (Ubuntu) Status: New => In Progress -- You received this bug notification because you are a member of DX Packages, which is subscribed to unity in Ubuntu. Matching subscriptions: dx-packages https://bugs.launchpad.net/bugs/1347735 Title: Lockscreen capslock detection doesn't work well with remapped capslocks Status in Unity: In Progress Status in “unity” package in Ubuntu: In Progress Bug description: Hi, Version: 7.2.2+14.04.20140714-0ubuntu1 (trusty) Some users like to remap the way the activate capslock. For example, using gnome-tweak-tool it's possible to set the CapsLock key to behave as an extra Ctrl, or an extra Alt (or several other extras) and then set "Both shifts together toggle CapsLock". This works perfectly well inside Unity, the hardware keyboard led indicator shows up, etc. However, the lockscreen detector doesn't correctly warn or not warn when this setup is used. * If the lockscreen was activated with capslock on, then the double-shift makes capslock go away, but not the warning. * If the lockscreen was activated with capslock off, then the double-shift makes capslock on, but no warning shows up. I believe the problem is in this piece of code in unity- shared/TextInput.cpp: void TextInput::OnKeyUp(unsigned keysym, unsigned long keycode, unsigned long state) { if (!caps_lock_on && keysym == NUX_VK_CAPITAL) caps_lock_on = true; else if (caps_lock_on && keysym == NUX_VK_CAPITAL) caps_lock_on = false; } This is checking for specific key, instead of the fact that CapsLock was activated or not. To manage notifications about this bug go to: https://bugs.launchpad.net/unity/+bug/1347735/+subscriptions -- Mailing list: https://launchpad.net/~dx-packages Post to : dx-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~dx-packages More help : https://help.launchpad.net/ListHelp