mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
[PR #226] [MERGED] Fix a long-standing keyboard shortcuts parsing error. #245
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/ultimatepp#245
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ultimatepp/ultimatepp/pull/226
Author: @ismail-yilmaz
Created: 1/22/2025
Status: ✅ Merged
Merged: 1/22/2025
Merged by: @mirek-fidler
Base:
master← Head:kbd_shortcut_fix📝 Commits (1)
2173439Keyboard shortcut fix.📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
uppsrc/CtrlLib/AKeys.cpp(+1 -1)📄 Description
This one-line patch aims to fix a long-standing bug in the keyboard shortcut parser.
Problem: Currently it is impossible to usePage Up,Page DownandCaps Lockkeys (or any combination of these keys with modifier keys) as programmable keyboard shortcuts.Reason: Keyboard shortcut parser creates a map of existing accelarator keys, using theKeyNames__map, defined inCtrlCore/CtrlKbd.cpp:383. However, the textual representation of the above mentioned keys contain a space character, which the keyboard shortcut parser inCtrlLib/AKeys.cpp:238does not like.Solution: Filter out the space characters when building the map (which is only used for keyboard shortcuts.)See the
reference/AKexample to reproduce the error. It is always reproducible.This shouldn't break anything.
Please check.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.