Summary: | On Wayland, Shortcuts do not work if a Numpad key is assigned to it | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kglobalaccel | Reporter: | VesperLlama <kde> |
Component: | general | Assignee: | kdelibs bugs <kdelibs-bugs> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | fanzhuyifan |
Priority: | NOR | Keywords: | qt6 |
Version: | 6.0.0 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Shortcut assigned on X11 and on Wayland |
Here is what I can reproduce on my end (wayland, git build, arch linux) using PgDn on the numpad: 1. assigning Ctrl+PgDn shows as Ctrl+Num+PgDn, works as assigned 2. same with Alt+PgDn, Meta+PgDn, Ctrl+Alt+PgDn. 3. Same with PgUp instead of PgDn If you open krunner and search for kwin debug, and open the kwin debug console, what events do you see when you press ctrl+alt+pgdn? What do you see if you run `sudo libinput debug-events --show-keycodes `? Input Events in Kwin Debug Console give this > Scan code 29 > Qt::Key code Key_Control > Scan code 56 > Qt::Key code Key_Alt > Scan code 81 > Qt::Key code Key_PageDown > sudo libinput debug-events --show-keycodes Gives the following output > event4 KEYBOARD_KEY +0.000s KEY_LEFTCTRL (29) pressed > event4 KEYBOARD_KEY +0.234s KEY_LEFTALT (56) pressed > event4 KEYBOARD_KEY +0.589s KEY_KP3 (81) pressed > ^[[6;7~ event4 KEYBOARD_KEY +0.655s KEY_KP3 (81) released > event4 KEYBOARD_KEY +1.236s KEY_LEFTALT (56) released > event4 KEYBOARD_KEY +1.403s KEY_LEFTCTRL (29) released > sudo libinput debug-events --show-keycodes
Gives the same output in X11 too.
(In reply to VesperLlama from comment #2) > Input Events in Kwin Debug Console give this What do you see for the modifiers? Is it Ctrl, Alt, Num, or just Ctrl and Alt? > event4 KEYBOARD_KEY +0.655s KEY_KP3 (81) released So at least libinput is correctly reporting a numpad press. (In reply to fanzhuyifan from comment #4) > What do you see for the modifiers? Is it Ctrl, Alt, Num, or just Ctrl and > Alt? Sorry I meant keypad instead of num. It says "Control Alt Keypad" in the modifiers for Page Down. (In reply to VesperLlama from comment #6) > It says "Control Alt Keypad" in the modifiers for Page Down. Can reproduce on neon unstable, can't reproduce on arch with plasma 6.0.1 running Qt 6.7. So I think this is a duplicate of 481164 and will be fixed by upcoming Qt releases. *** This bug has been marked as a duplicate of bug 481164 *** |
Created attachment 166783 [details] Shortcut assigned on X11 and on Wayland SUMMARY I am on a laptop which has arrow, PageUp, PageDown, Home, End keys in the Numpad. If I assign any shorcut to a combination which include these keys or other numpad keys then the shortcuts do not work. If I set the shortcut on X11 then the shortcut shows up as "Ctrl+Num+PageUp" but on Wayland it shows as "Ctrl+PageUp". If the shortcut is assigned in X11 then it works on both X11 and Wayland. STEPS TO REPRODUCE 1. Assign any shortcut to a combination which includes the Numpad key. Example - Ctrl+Alt+PageUp. 2. Try to use the shortcut OBSERVED RESULT Nothing happens. EXPECTED RESULT The assigned shortcut should be triggered. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 6.0.1 KDE Frameworks Version: 6.0.0 Qt Version: 6.6.2 Kernel Version: 6.7.8-arch1-1 (64-bit) Graphics Platform: Wayland ADDITIONAL INFORMATION This used to work fine on Plasma 5.