RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1259675 - Keyboard shorcuts stop working after changing keyboard layout
Summary: Keyboard shorcuts stop working after changing keyboard layout
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qt
Version: 7.1
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Jan Grulich
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks: 1203710 1293786 1297830 1313485 1321025
TreeView+ depends on / blocked
 
Reported: 2015-09-03 10:40 UTC by Siteshwar Vashisht
Modified: 2019-12-16 04:54 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
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.
Clone Of:
: 1293786 1321025 (view as bug list)
Environment:
Last Closed: 2016-11-04 01:27:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
test.c (473 bytes, text/plain)
2015-09-03 10:40 UTC, Siteshwar Vashisht
no flags Details
0001-Revert-QTBUG-15319-fix-shortcuts-with-secondary-Xkb-.patch (1.66 KB, patch)
2015-09-03 10:41 UTC, Siteshwar Vashisht
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2236 0 normal SHIPPED_LIVE kde-workspace bug fix and enhancement update 2016-11-03 13:28:08 UTC

Description Siteshwar 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 1 Siteshwar Vashisht 2015-09-03 10:41:28 UTC
Created attachment 1069731 [details]
0001-Revert-QTBUG-15319-fix-shortcuts-with-secondary-Xkb-.patch

Backported patch from http://code.qt.io/cgit/qt/qt.git/commit/?id=0c03af0d4d928bdbb32b09eedb1dba3ce59e5278

Comment 3 Jan Grulich 2015-09-03 11:37:12 UTC
Unfortunately it's too late to get this fixed in RHEL 7.2, would need to wait probably for RHEL 7.3.

Comment 4 Siteshwar 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 5 Siteshwar Vashisht 2015-12-15 06:26:38 UTC
From  my understanding this bug was never fixed in Qt4, however it was fixed in Qt5 with this change request https://codereview.qt-project.org/#/c/96993/

Comment 8 Jan Grulich 2016-01-19 08:53:32 UTC
Granting dev_ack+, patch is available.

Comment 9 Jan Grulich 2016-03-24 09:42:02 UTC
Fixed in qt-4.8.5-12.el7.

Comment 18 errata-xmlrpc 2016-11-04 01:27:46 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


Note You need to log in before you can comment on or make changes to this bug.