Bug 513273 - Shortcuts configured for extra mouse buttons are not sent if they include letters and non-default keyboard layout is active
Summary: Shortcuts configured for extra mouse buttons are not sent if they include let...
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: input (other bugs)
Version First Reported In: 6.5.3
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-13 00:37 UTC by sergeyprotserovca
Modified: 2025-12-16 22:07 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sergeyprotserovca 2025-12-13 00:37:43 UTC
SUMMARY

If I configure an extra mouse button to be equivalent to a shortcut including a letter, for example, Meta+N, it works when my main (English (US)) keyboard layout is active, but doesn't work when my secondary (Russian (RU)) keyboard layout is active. A shortcut not including a letter, for example, Meta+9, works in both cases.

STEPS TO REPRODUCE
1. Go to System Settings -> Mouse & Touchpad -> Mouse -> Configure Extra Buttons...
2. Set one of the extra buttons to send Meta+N, another one -- to send Meta+9
3. Go to System Settings -> Keyboard
4. Add a Russian layout and configure layout switching
5. Go to System Settings -> Keyboard -> Shortcuts
6. Add some clearly visible actions for Meta+N and Meta+9
7. Try pressing the configured extra mouse buttons with both your main and Russian layouts

OBSERVED RESULT

Mouse button assigned to Meta+N only works with the main layout, mouse button assigned to  Meta+9 works with both main and Russian layouts

EXPECTED RESULT

Both buttons work for both layouts

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Fedora 42
KDE Plasma Version: 6.5.3
KDE Frameworks Version: 6.20.0
Qt Version: 6.9.3

ADDITIONAL INFORMATION

Both actual keyboard shortcuts work with both keyboard layouts active. If I run `wev`, then clicking the mouse button in question (assigned to a shortcut including a letter, Meta+N) with the main (English (US)) layout gives the following output:
```
[14:     wl_keyboard] key: serial: 146638; time: 121633361; key: 133; state: 1 (pressed)
                      sym: Super_L      (65515), utf8: ''
[14:     wl_keyboard] modifiers: serial: 146639; group: 0
                      depressed: 00000040: Mod4
                      latched: 00000000
                      locked: 00000000
[14:     wl_keyboard] key: serial: 146642; time: 121633368; key: 133; state: 0 (released)
                      sym: Super_L      (65515), utf8: ''
[14:     wl_keyboard] modifiers: serial: 146643; group: 0
                      depressed: 00000000
                      latched: 00000000
                      locked: 00000000
```

There is no output if I click the button in question with Russian (RU) layout active.