Bug 453423 - Numpad shortcuts don't work in wayland sessions.
Summary: Numpad shortcuts don't work in wayland sessions.
Alias: None
Product: frameworks-kglobalaccel
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.95.0
Platform: Archlinux Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
Depends on:
Reported: 2022-05-05 14:40 UTC by krypek
Modified: 2022-11-30 19:11 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Note You need to log in before you can comment on or make changes to this bug.
Description krypek 2022-05-05 14:40:14 UTC
1.  Make sure your on a wayland session
2.  Open KDE System Settings (systemsettings)
3.  Go to Shortcuts/Shortcuts/Media Controller/
4.  Try to assign a shortcut to any numpad key

It cannot be assigned.
It can be assigned and it works in an X11 session.

You should be able to assign exclusive numpad keys in wayland sessions.
And they should be working, just like in X11 sessions.

Linux/KDE Plasma: 5.17.5-arch1-1 (64-bit)
KDE Plasma Version:  5.24.5
KDE Frameworks Version: 5.93.0 
Qt Version: 5.15.3
Graphics Platform: Wayland (!!!)

Using English (US) keyboard layout
Comment 1 hueponik 2022-07-05 05:16:18 UTC
I can confirm this bug. 
Numpad numbers (KP1-KP9) are seen same as just number on keyboard (1-9), which are mapped to totally different functions.
It's also just ignoring some keys like `KP_Divide` (/) or `KP_Subtract` Numpad (-) when assigning them in combination with Ctrl+Alt
It's not possible to use them as a shortcut (i.e. Ctrl+Alt+KP_Divide is not working)
Comment 2 Anton Skorokhod 2022-07-06 06:37:39 UTC
also confirming this issue on KDE Neon, Plasma 5.25.2, kde frameworks 5.95.0
with X11 session everything works, on Wayland it's impossible to use numpad as separate keys in any keyboard layout (tried US, CZ and RU)
it's not "one layout issue" as I have more layouts configured in system
Comment 3 Marcin Juszkiewicz 2022-09-19 07:33:24 UTC
Same on Fedora 37.

In X11 session I have Meta+4 == switch to 4th desktop and Meta+Num4 to be "move window to left side of screen". I am getting tired of seeing 4th desktop again ;D
Comment 4 Anton Skorokhod 2022-10-28 10:44:26 UTC
kde frameworks 5.99 and 5.26.2, problem still exists
Comment 5 Patrick Silva 2022-10-29 22:49:02 UTC
Cannot reproduce on Arch Linux. I can set ctrl+1 and ctrl+2, for example, and they work.
I use brazilian portuguese (abnt2) keyboard layout.
Comment 6 Anton Skorokhod 2022-10-29 22:53:57 UTC
(In reply to Patrick Silva from comment #5)
> Cannot reproduce on Arch Linux. I can set ctrl+1 and ctrl+2, for example,
> and they work.
> I use brazilian portuguese (abnt2) keyboard layout.

It's not about ctrl+1 or ctrl+2, but about different mapping of ctrl+1 on numbers above leteters and ctrl+1 when "1" is pressed on additional numeric keyboard. On X11 it works (it's different) but on Wayland that "1" is the same on basic and additional part of keyboard :(
Comment 7 Ville Aakko 2022-11-30 19:11:05 UTC
Can confirm this bug on Arch Linux, too.

KDE Plasma can not tell the difference between number pad keys and their normal variants. This includes the numbers when NumLock is on but also PgUp, PgDown, Home, End etc. available when NumLock is off..