In some applications entering capital letters works like hitting ESC key.
Reproducing:
- Open LibreOffice document
- Select "Save as" (Unity dialog)
- Hit "Create folder"
- Enter a capital letter using shift key (e.g. Shift+A)
As this point the creating of the new folder get canceled. (like ESC key was hit)
This behavior is also present in many different programs and games.
Analyzing the situation with xev
(Hitting Shift+d)
# xev
KeyPress event, serial 37, synthetic NO, window 0x4c00001,
root 0x259, subw 0x0, time 994702, (15,-13), root:(987,197),
state 0x10, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
FocusOut event, serial 37, synthetic NO, window 0x4c00001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 37, synthetic NO, window 0x4c00001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 37, synthetic NO, window 0x0,
keys: 89 0 0 0 0 1 4 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
KeyPress event, serial 37, synthetic NO, window 0x4c00001,
root 0x259, subw 0x0, time 994927, (15,-13), root:(987,197),
state 0x11, keycode 40 (keysym 0x44, D), same_screen YES,
XLookupString gives 1 bytes: (44) "D"
XmbLookupString gives 1 bytes: (44) "D"
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x4c00001,
root 0x259, subw 0x0, time 995062, (15,-13), root:(987,197),
state 0x11, keycode 40 (keysym 0x44, D), same_screen YES,
XLookupString gives 1 bytes: (44) "D"
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x4c00001,
root 0x259, subw 0x0, time 995395, (15,-13), root:(987,197),
state 0x11, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
I think, that the FocusOut
and FocusIn
events look suspicious.
Linux: Ubuntu 14.04 LTS 32bit, Unity
How can I fix my system? Any ideas or further tests are welcome!
Edit: The solution
I used to configure language switch to LeftShift+RightShift. This worked for years, but become the problem at some point. Anyway configuring switch to any other key combination solved the problem.
0x1
not0x11
. It indicates that bothShift
andMod2
are enabled. Did you change anything withXmodmap
orXKB
? – nitishch Aug 02 '15 at 10:57Xmodmap
, but I removed.Xmodmap
and undone the other stuff I did (I hope). Then I restarted the system. Any idea, how can I find the problem? Thank you!! – Boris Brodski Aug 02 '15 at 11:38