Previously, changing the keyboard layout in an X Window environment caused custom keyboard shortcuts to stop working. This update fixes the underlying source code and thus ensures that keyboard shortcuts work as expected in the described situation.
DescriptionSiteshwar Vashisht
2015-09-03 10:40:10 UTC
Created attachment 1069730[details]
test.c
Description of problem:
Keyboard shorcuts stop working after changing keyboard layout
Version-Release number of selected component (if applicable):
qt-x11-4.8.5-8.el7.x86_64
qt-4.8.5-8.el7.x86_64
How reproducible:
Always
Steps to Reproduce:
1. Add below lines in /etc/X11/xorg.conf
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us,ru(winkeys)"
Option "XkbVariant" ","
Option "XkbOptions" "grp:ctrl_shift_toggle"
EndSection
2. Login to KDE
3. Compile attached program test.c
4. Run the program and press 'ALT - x', it should press the button.
5. Change keyboard layout by pressing Ctrl - Shift - k.
6. Press 'ALT - x' again.
Actual results:
Button is not pressed after changing keyboard layout.
Expected results:
Button should be pressed after changing keyboard layout.
Comment 1Siteshwar Vashisht
2015-09-03 10:41:28 UTC
Unfortunately it's too late to get this fixed in RHEL 7.2, would need to wait probably for RHEL 7.3.
Comment 4Siteshwar Vashisht
2015-12-15 06:22:25 UTC
This bug is still reproducible if russian layout is used as primary keyboard layout. For e.g. with this xorg configuration :
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "ru,us"
Option "XkbVariant" ","
Option "XkbOptions" "grp:alt_shift_toggle"
EndSection
Comment 5Siteshwar Vashisht
2015-12-15 06:26:38 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://rhn.redhat.com/errata/RHBA-2016-2236.html
Created attachment 1069730 [details] test.c Description of problem: Keyboard shorcuts stop working after changing keyboard layout Version-Release number of selected component (if applicable): qt-x11-4.8.5-8.el7.x86_64 qt-4.8.5-8.el7.x86_64 How reproducible: Always Steps to Reproduce: 1. Add below lines in /etc/X11/xorg.conf Section "InputClass" Identifier "system-keyboard" MatchIsKeyboard "on" Option "XkbLayout" "us,ru(winkeys)" Option "XkbVariant" "," Option "XkbOptions" "grp:ctrl_shift_toggle" EndSection 2. Login to KDE 3. Compile attached program test.c 4. Run the program and press 'ALT - x', it should press the button. 5. Change keyboard layout by pressing Ctrl - Shift - k. 6. Press 'ALT - x' again. Actual results: Button is not pressed after changing keyboard layout. Expected results: Button should be pressed after changing keyboard layout.