https://bugs.kde.org/show_bug.cgi?id=444537

            Bug ID: 444537
           Summary: when toggling keyboard layout, shortcuts continue to
                    use the old layout
           Product: frameworks-kglobalaccel
           Version: 5.87.0
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kdelibs-b...@kde.org
          Reporter: adam.m.fontenot+...@gmail.com
  Target Milestone: ---

SUMMARY
I use Dvorak and Qwerty layouts interchangeably. KDE ships with a bunch of
shortcuts by default, for example opening Dolphin has the default shortcut
Meta+E. When I log in to KDE with one layout set as default, then toggle to the
other layout, shortcuts continue to use the original layout.

STEPS TO REPRODUCE
1. Set your input methods to include both Dvorak and Qwerty, with Dvorak set as
default. Make sure the keyboard layout toggle widget is visible in your
taskbar. Make sure Dolphin is set to open with the Meta+E shortcut (should be
the default).
2. Reboot and log in.
3. Press Meta+E (because your keyboard layout is now Dvorak, that's the
physical keys Meta+D on a standard US Qwerty keyboard).
4. Close Dolphin if it appears.
5. Toggle your keyboard layout to Qwerty.
6. Press Meta+D (same as the physical keys, because you're now using Qwerty)

OBSERVED RESULT
Dolphin appears both times.

EXPECTED RESULT
Dolphin should appear the first time, but not appear the second time. The
keyboard shortcut has not changed (it's Meta+E), but you are now pressing the
keys Meta+D. 

SOFTWARE/OS VERSIONS
Linux: Arch Linux x86_64 (kernel 5.14.14)
KDE Plasma Version: 5.23.2
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
I think this *might* be caused by the keyboard layout switcher not changing the
layout configured via the X keyboard extension. When I switch to Qwerty, I
still see the following:

$ setxkbmap -query
rules:      evdev
model:      pc101
layout:     dvorak,us

So probably X still thinks I'm using Dvorak, so maybe the keycodes that
kglobalaccel sees are still the Dvorak keys. If that's the issue and this
belongs in a different component, I'd appreciate someone helping me move it
there.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to