Bug 462110

Summary: Weird ghost key while creating shortcut
Product: [Applications] Haruna Reporter: Ivan <ivantrufan27>
Component: genericAssignee: george fb <georgefb899>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 0.9.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Ivan 2022-11-21 22:14:02 UTC
SUMMARY

While trying to make a custom shortcut, while pressing function key(for example Alt or Ctrl) "," symbol is displayed before it. After attempt of assigning own shortcut the shortcut won't work(nothing will happen instead of expected action)
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Go to shortcuts
2. Try to edit any of them and put firstly the function key


OBSERVED RESULT
Before function key there is ",", which probably means that there is some ghost keystroke before the function key, and the shortcut won't work as intended.

EXPECTED RESULT
Expected not to see ghost keystroke and expected my shortcut to work

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Arch
(available in About System)
KDE Plasma Version: 5.26.3
KDE Frameworks Version: 5.100.0
Qt Version: 5.17.7

ADDITIONAL INFORMATION
Comment 1 george fb 2022-11-30 14:32:20 UTC
Git commit 2b68f552d03bc08b8e51dccfe084d1bacefdb22e by George Florea Bănuș.
Committed on 30/11/2022 at 14:32.
Pushed by georgefb into branch 'master'.

shortcuts: refactor setting a keysequence for KeySequenceItem

fixes not being able to set shortcuts with modifiers

M  +2    -14   src/qml/Settings/CustomCommandsSettings.qml
M  +2    -13   src/qml/Settings/ShortcutsSettings.qml

https://invent.kde.org/multimedia/haruna/commit/2b68f552d03bc08b8e51dccfe084d1bacefdb22e