[XKB] need to kick hotkeys on release, not press
Submitted by Vitaly Shishakov
Assigned to Xorg Project Team
I used to use Ctrl-Shift combination to switch keyboard layouts (ru
but in this case i cant use any of the Ctrl-Shift-* hotkeys in any software i try.
I noticed, that the keyboard layout becomes swithced as soon an both keys are DOWN --
pressing any other key is not treated as Ctrl-Shift-
For example -- in Windows i also use Ctrl-Shift to switch layouts, but there, the layout
becomes switched only when both SHIFT and CTRL keys are UP, and no other key was
pressed while they were down -- in that case the hole combination is treates as
<key> combination, and the layout is not changed.
I use the following lines in XF86Config:
Section "InputDevice" Driver "Keyboard" Identifier "Keyboard" Option "Protocol" "Standard" Option "XkbLayout" "us,ru" Option "XkbModel" "pc104" Option "XkbOptions" "grp:ctrl_shift_toggle" Option "XkbRules" "xfree86" Option "XkbVariant" ",winkeys" EndSection