Bug 482388 - Keyboard shortcuts using numpad not working
Summary: Keyboard shortcuts using numpad not working
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: input (other bugs)
Version First Reported In: 6.0.0
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-04 15:06 UTC by Alexandre BARBIER
Modified: 2024-03-07 18:41 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 Alexandre BARBIER 2024-03-04 15:06:35 UTC
SUMMARY

When I try using the shortcut for zoom (Meta++) it doesn't work with the '+' key of the numpad but works with the '+' key that isn't on the numpad.
I tried adding a new shorcut with other keys from the numpad and the same issue appears.

STEPS TO REPRODUCE
1. Open settings
2. Go to Keyboard -> Shortcut
3. Search for Zoom
4. In Kwin -> Zoom In
3. Add a shorcut using the numpad (for example Meta++) (This issue is not exclusive to this shortcut)
4. Try using the shortcut

OBSERVED RESULT
Nothing happens

EXPECTED RESULT
The shortcut should be activated

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kernel 6.8.0/Plasma 6.0.0
(available in About System)
KDE Plasma Version: 6.0.0
KDE Frameworks Version:  6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION

The shortcut worked just fine on Plasma 5.27
Comment 1 Nicolas Fella 2024-03-04 16:05:33 UTC
I looks like you are reporting the inverse of https://bugs.kde.org/show_bug.cgi?id=446389

We fixed shortcuts to differentiate between numpad and non-numpad keys, but you seem to want them to behave the same?
Comment 2 Alexandre BARBIER 2024-03-04 16:11:46 UTC
(In reply to Nicolas Fella from comment #1)
> I looks like you are reporting the inverse of
> https://bugs.kde.org/show_bug.cgi?id=446389
> 
> We fixed shortcuts to differentiate between numpad and non-numpad keys, but
> you seem to want them to behave the same?

Nl(In reply to Nicolas Fella from comment #1)
> I looks like you are reporting the inverse of
> https://bugs.kde.org/show_bug.cgi?id=446389
> 
> We fixed shortcuts to differentiate between numpad and non-numpad keys, but
> you seem to want them to behave the same?
No not really, my issue is that, even if when I want to add a new shortcut I press the key on the numpad (in this example I press Meta + Numpad+ to add the shortcut then apply the changes), the shortcut doesn't work afterward with the numpad key
Comment 3 Nicolas Fella 2024-03-04 16:20:03 UTC
When you enter the shortcut, what does the UI say? "Meta++" or "Meta+Num++"?
Comment 4 Alexandre BARBIER 2024-03-04 16:33:29 UTC
(In reply to Nicolas Fella from comment #3)
> When you enter the shortcut, what does the UI say? "Meta++" or "Meta+Num++"?

It shows Meta++
Comment 5 Nicolas Fella 2024-03-05 20:47:42 UTC
Ok, then it's expected that the numpad key does not trigger it.

What should and does happen for me (using Fedora 40) is that it shows "Meta+Num++" and the numpad key triggers the shortcut
Comment 6 Alexandre BARBIER 2024-03-05 20:58:31 UTC
(In reply to Nicolas Fella from comment #5)
> Ok, then it's expected that the numpad key does not trigger it.
> 
> What should and does happen for me (using Fedora 40) is that it shows
> "Meta+Num++" and the numpad key triggers the shortcut

Hello, I wanted to try it again, just to be sure,
I ran Fedora 40 from a live USB (the exact same as yesterday), didn't update anything since then, but when I tried it today it worked just fine (exactly how you described it, the UI said "Meta+Num++" and the shortcut worked), I have no idea what changed between yesterday and today, I'm sorry for this bug report that isn't really useful, and I thank you for your answers.
Comment 7 Derek Murn 2024-03-07 18:38:03 UTC
I can reproduce this bug on:

System: Arch Linux
Kernel Version: 6.7.8
KDE Plasma Version: 6.0.1
KDE Frameworks Version:  6.0.1
Qt Version: 6.6.2

A workaround I found is exporting the keyboard scheme in the Shortcut System Settings.
The resulting file can simply be opened with a text editor.
Replacing "Meta+" by "Meta+Num+" and importing the scheme back into the settings makes everything work as expected.

So system-wide keyboard settings with numpad work, but somehow the settings don't differentiate numbers and numpad keys when recording the shortcut.
Comment 8 Nicolas Fella 2024-03-07 18:41:10 UTC
This needs Qt 6.6.3 to work properly. Fedora has backported the relevant patch (https://codereview.qt-project.org/c/qt/qtwayland/+/533675) in its Qt, but Arch likely has not