Bug 471093 - Numpad shortcuts not recognised under Wayland / Regression
Summary: Numpad shortcuts not recognised under Wayland / Regression
Status: RESOLVED DUPLICATE of bug 453423
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_keys (show other bugs)
Version: 5.27.7
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-15 21:30 UTC by aplatypus
Modified: 2023-08-07 18:49 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot of keyboard shortcuts (150.54 KB, image/png)
2023-06-15 21:30 UTC, aplatypus
Details
Short cut Export (save) failed (361.42 KB, image/png)
2023-06-15 21:53 UTC, aplatypus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aplatypus 2023-06-15 21:30:30 UTC
Created attachment 159700 [details]
Screenshot of keyboard shortcuts

SUMMARY



STEPS TO REPRODUCE
1. I have used the shortcut pattern to switch to a virtual workspace of: Ctrl+Alt+Num+1, Ctrl+Alt+Num+2, etc to respectively switch to virtual workspace: 1, 2, etc for many years.
2. After upgrading to Kubuntu 23.04 I logged on using a Wayland session
3.  My workspace change shortcut didn't work for workspace #1 (and other shortcuts).  This is/was working under X-11 loging session on this installation.
4. I checked the KWin shortcuts and they are are set correctly.  See screenshot for 'Ctrl+Alt+Num+3' example circled.  This is how it works with Plasma X-11.
5. I then went to redefine the 'Ctrl+Alt+Num+1' (workspace 1) keystroke BUT they shortcut interface did NOT recognise 'Ctrl+Alt+Num+1' key pattern and instead recorded: 'Ctrl+Alt+1'.  That is incorrect.
6. I checked this shortcut combination and  'Ctrl+Alt+1' matches BOTH the QWETY keyboard-1-key scan-code and the numpad-1-key scan-code.  Unlike the X-11 session the Wayland session does not distinguish the numpad as a different set of keys (scan-codes). Sometimes the numpad is a completely different piece of hardware, so this is not what is desired.


OBSERVED RESULT

* The required: 'Ctrl+Alt+Num+1' does not register, and cannot be defined.
* The existing (example) 'Ctrl+Alt+Num+3' is defined from the Kubuntu Plasma X-11 login on this PC
* None of the currently defined workspace shortcuts work.
* Instead the shortcut: 'Ctrl+Alt+Num+1' was recorded and uses the number keys on the QWERTY keyboard or the numpad 1-key -- Which is NOT desired.  The keyboard 1-key is used for other things.

EXPECTED RESULT

* 'Ctrl+Alt+Num+1', 'Ctrl+Alt+Num+2' , 'Ctrl+Alt+Num+3' , ... 'Ctrl+Alt+Num+9' and 'Ctrl+Alt+Num+0', should be defined as distinct scancodes and work as defined with the existing X-11 settings.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 23.04 
(available in About System)
KDE Plasma Version:  5.27.4 (I think; The KDE ABOUT box does not display the Plasma release number)
KDE Frameworks Version: No idea, where can I find that?
Qt Version: v5 I believe

ADDITIONAL INFORMATION

* I have saved the shortcut definitions using they 'Export Scheme' button, alas the bug report only seems to permit a single attachmet.  I will try to add someting later after filing this bug.

*  It seems by the list of 'possibly related' issues that came-up when I opened this bug that there are several cases where the numpad is being ignored or collapsed onto keyboard keys.  
* The thing with keystrokes, is that they match scan-codes, not characters.  Often there are custome keypads or alternative controls 'wired' to the system that are do not at all match a keyboard -- Uses include custom terminals, machine control, virtual controls.
Comment 1 aplatypus 2023-06-15 21:53:34 UTC
Created attachment 159701 [details]
Short cut Export (save) failed

* Unfortunately the 'Export Scheme' operation did not save a file.  
* I tried this several times,  see second screenshot -- Showing that a find statement did not locate the exported file.
* The Export/Save command did not show an error or report a problem.  Perhaps the file is save someplace else -- But that should be reported or logged.
Comment 2 Nate Graham 2023-08-07 18:49:41 UTC

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