The keyboard unit reads shift+tab twice, when the key is pressed only once (+patch)
Original Reporter info from Mantis: nickysn @nickysn
-
Reporter name: Nikolay Nikolov
Original Reporter info from Mantis: nickysn @nickysn
- Reporter name: Nikolay Nikolov
Description:
This only happens on the linux console (Ctrl+Alt+F1..F6) and not in xterm. Tested under Fedora 14. When you press shift+tab, the keyboard unit reads two key events:
Code: $0F00 Flags: 3 Shift state: 11
Code: $0F00 Flags: 3 Shift state: 3
The first one has a shift state of "shift + alt", the second - just "shift". This has the nasty side effect that shift+tab moves two steps back in IDE dialogs, instead of just one. The reason seems to be because the linux console sends #27#9 (Meta_Tab?) and this isn't recognized by the keyboard unit and is mishandled (the #27 prefix is mistaken for an alt modifier and two keyboard events are generated, because the #9 is put back on the input buffer, because it isn't recognized?). Anyway, adding #27#9 to the key_sequences array seems to fix it and the proposed patch does that.
Please note that Alt+Tab also sends the same sequence and is interpreted as Shift+Tab by this patch. However, without the patch, Alt+Tab was treated as two times Shift+Tab, so the patch does not make it worse :)
I can make a separate patch, that further distinguishes Alt+Tab from Shift+Tab by the shift state, if necessary.
Mantis conversion info:
- Mantis ID: 19247
- OS: Linux
- Fixed in version: 2.6.0
- Fixed in revision: 18839 (#893c1d9f)