Bug 505253 - KDe shortcuts can't distinguish between number pad and main keyboard strokes
Summary: KDe shortcuts can't distinguish between number pad and main keyboard strokes
Status: RESOLVED DUPLICATE of bug 446389
Alias: None
Product: frameworks-kglobalaccel
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 5.103.0
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-06 01:54 UTC by kdebugs
Modified: 2025-06-06 12:21 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kdebugs 2025-06-06 01:54:19 UTC
STEPS TO REPRODUCE
1. assign a shortcut to Meta+-, using the number pad

OBSERVED RESULT
Using either the number pad - key or the main keyboard - key triggers the shortcut

EXPECTED RESULT
Only the key used in the shortcut assignment should trigger the shortcut.

SOFTWARE/OS VERSIONS

Operating System: Debian GNU/Linux 12
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.0-37-amd64 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION

From xev the keys are different:
    keycode 20 (keysym 0x2d, minus)
vs:
    keycode 82 (keysym 0xffad, KP_Subtract)

…but if I edit kglobalshortcutsrc and change “-” to KP_Subtract, it doesn’t work. Ideally we could specify keycode, keysym, or use the KP_Subtract style names in kglobalshortcutsrc.

It's understandable to treat the "-" key on the number pad as semantically identical to the regular "-", but the number pad presents a big opportunity to assign shortcuts, and it is lost due to this.
Comment 1 Nicolas Fella 2025-06-06 12:21:28 UTC
This is fixed in Plasma 6

*** This bug has been marked as a duplicate of bug 446389 ***