Refactor shortcut related code & add shortcut tab to settings #3456
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi, it's been a while! I've seen that some work has been done on shortcut configuration, and had some motivation to have a look at it a bit. Hopefully these changes manage to improve/simplify shortcut handling:
Features/bug fixes
WIP: Need to add some text to the shortcut settings tab, test the user shortcut mode, and do a once over of the code.
Screenshots
The current UI is shown below:

Testing
I'm only able to test this on Debian (Trixie) - it'll probably want testing on Windows/Mac as well.
I'm unsure whether the code I've written is Qt5 compatible, but I assume Qt6 is becoming the main option anyways.I just saw the commit deprecating Qt5, so I'm going to assume using Qt6 features is fine.Feedback & suggestions are welcome :)