Bug 1249335 - Inconsistent rules for shortcuts between different applications when switching keymaps
Inconsistent rules for shortcuts between different applications when switchin...
Status: NEW
Product: Fedora
Classification: Fedora
Component: gnome-shell (Show other bugs)
rawhide
x86_64 Linux
unspecified Severity medium
: ---
: ---
Assigned To: Owen Taylor
Fedora Extras Quality Assurance
: Reopened
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-08-01 14:00 EDT by N.Brack
Modified: 2017-11-17 03:21 EST (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-07-19 15:54:27 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description N.Brack 2015-08-01 14:00:33 EDT
I have this bug since a few fedora version.  In some applications, the shortcuts obeys the localized ibus keymap, but other keeps the default keymap when pressing CTRL.  Typical example includes gimp (follows keymap) and inkscape (ignore keymap).  I'm personally using both the us and dvorak keymap, and this behaviour is pernicious as the key locations are very dissimilar.

Using "setxkbmap" is hard erasure of the keymap, and after that _all_ applications follows the keymap when using the shortcuts.  But then ibus doesn't really work anymore, and it's inconvenient.

Thus a solution could either be that:
*ibus is resilient to "setxkbmap"
*All software are presented with the same keymap, which can be configured to be the current map.


Software versions:
GNOME Shell 3.16.3
IBus 1.5.10
Xorg 1.17.2
Comment 1 fujiwara 2015-08-02 22:34:48 EDT
Could you explain your problem with the reproducing steps with detail?

I tried gimp Text Tool and Ctrl+A works fine.
Comment 2 fujiwara 2015-08-05 01:52:27 EDT
Any updates?
Comment 3 N.Brack 2015-08-05 03:03:42 EDT
I'm not on my linux computer often lately, so I didn't upadet the issue yet.  But it might get long before I get the time, so I did reproduce the exact same bug on a fedora VM on Virtual Box.

By the way, qwerty and dvorak happens to have the key at the same place, so CTRL+A won't help to detect the bug.

Steps to reproduce
------------------
1. Install a new fedora distribution.  Select US/Dvorak whenever possible.
2. On you fresh fedora, install Gimp and Inkscape
3. On the gnome settings "Regions&Languages", add a new keyboard : "English(US)"
4. Make sure you have the dvorak keyboard selected in gnome.
5. Launch Gimp and Inkscape
6. In gimp press the dvorak CTRL+N.  It correspond on CTRL+L on you keyboard if it's print with the qwerty layout.  As expected, a new document is (asked to be) created.
7. Do the same step in inkscape, pressing the dvorak CTRL+N.  Again, as expected a new document is created.
8. Switch you layout to qwerty using the ibus icon on top right.
9. In gimp, press the qwerty CTRL+N.  So I'm speakingt of the keys actually labelled CTRL and N on a qwerty keyboard.  As expected, a new document is created.
10.  Repeat the same step in inkscape.  The scrollbars of the current document appears/disappears, as if we pressed CTRL+B.  If the layout was set to dvorak, we would actually press CTRL+B by pressing CTRL and the key labelled N on a keyboard printed with a qwerty keymap.
Note. We already see a chang. of behavior here.  Gimp treats CTRL+Key as the current keymap while Inkscape keeps treating them as the original Dvorak keymap.
11. In gimp, press the qwerty CTRL+L, (which correspond to the CTRL+N in dvorak).  As expected, the "layers" dialog is selected.
12. Press the same keys in inkscape.  Now, a new document is created as if we did press CTRL+N in dvorak.
12. open a terminal and enter `setxkbmap us`.
13. Repeat step 9.  Gimp should behaves the same
14. Repeat setp 10.  Now inkscape creates a new document, which is the exact same behavior as gimp.
15. Repeat step 11.  Gimp should behaves the same.
16. Repeat step 12. Inscape should notify you have to select a path.  If you create one and select it, and then doing this step, the path is simplified as if we pressed CTRL+L.  The behavior is the same as in gimp.
17. Switch you layout to dvorak using the ibus icon on top right.
18. Type in a terminal.  Your input is still qwerty.  Ibus is basically not working anymore.
Comment 4 fujiwara 2015-08-06 22:37:14 EDT
I can reproduce this bug with comment #3.

This problem happens in GNOME only because ibus-ui-gtk3 runs setxkbmap.
gnome-shell -> meta_backend_x11_lock_layout_group() -> XkbLockGroup() seems not to work.

FYI. ibus does not use the xkb group layouts but ibus uses joint layout for non-ascii layout. e.g. "ara,us" , "ru,us" to work Ctrl+C so ibus switches "us" and "ru,us".
Comment 5 Fedora End Of Life 2016-07-19 15:54:27 EDT
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.
Comment 6 Jan Kurik 2016-07-26 00:52:41 EDT
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle.
Changing version to '25'.
Comment 7 Fedora End Of Life 2017-11-16 14:12:10 EST
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

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