Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalize strokes in fixed order #1572

Merged
merged 3 commits into from
Aug 25, 2023
Merged

Conversation

Guldoman
Copy link
Member

@Guldoman Guldoman commented Aug 5, 2023

Continuing from #1334.

This fixes a couple issues with key_to_stroke, remove_duplicates and keymap.unbind.

This also sorts the MacOS modifiers (kinda) according to https://developer.apple.com/design/human-interface-guidelines/keyboards (under List modifier keys in the correct order.) and the generic modifiers according to a poll on Discord (again, kinda).

This also sorts the modifiers in a fixed manner, decided by 
`modkeys.keys`.
We need to do this because we display the strokes in a few places like 
the command palette.
jgmdev pushed a commit to pragtical/pragtical that referenced this pull request Aug 7, 2023
@adamharrison adamharrison merged commit 671c897 into lite-xl:master Aug 25, 2023
takase1121 pushed a commit to takase1121/lite-xl that referenced this pull request Aug 26, 2023
* Use normalized strokes when removing duplicates only when appropriate

* Use normalized stroke in `keymap.unbind`

* Normalize strokes by sorting the modifiers before the keys

This also sorts the modifiers in a fixed manner, decided by 
`modkeys.keys`.
We need to do this because we display the strokes in a few places like 
the command palette.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants