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

Better shortcuts #1206

Merged
merged 2 commits into from
Sep 2, 2023
Merged

Better shortcuts #1206

merged 2 commits into from
Sep 2, 2023

Conversation

zelch
Copy link
Contributor

@zelch zelch commented Sep 1, 2023

Currently, the mozilla documentation states that for secondary modifiers:

If supplied, this must be either "Shift" or (for Firefox ≥ 63) any one of "Ctrl", "Alt", "Command", or "MacCtrl". Must not be the modifier already used as the main modifier.

This commit adds Ctrl, Command, and MacCtrl to the list of allowed secondary modifiers, allowing stuff like MacCtrl+Ctrl+Period as a binding.

Of course, that renders quite confusingly (Ctrl+Ctrl+Period), so I did a second change to render MacCtrl as ⌃, which is UTF 2302 Up Arrowhead. This appears to be what MacOS is using to render it.

At the very least, it's the symbol they use on their website for it. :)

This gives us ⌃+Ctrl+Period, which is at least less confusing, even if I wish that Command came through as Command.

Zeph / Liz Loss-Cutler-Hull added 2 commits September 1, 2023 03:29
Currently, the mozilla documentation states that for secondary
modifiers:

If supplied, this must be either "Shift" or (for Firefox ≥ 63) any one
of "Ctrl", "Alt", "Command", or "MacCtrl". Must not be the modifier
already used as the main modifier.

This commit adds Ctrl, Command, and MacCtrl to the list of allowed
secondary modifiers, allowing stuff like MacCtrl+Ctrl+Period as a
binding.

Of course, that renders quite confusingly (Ctrl+Ctrl+Period), but at
least we can now accept the bindings.
Instead of rendering MacCtrl as Ctrl, which can cause confusion when
Command gets mapped to Ctrl instead of Command, this instead renders it
as UTF 2303 Up Arrowhead (⌃), which is the character that MacOS appears
to use for showing macctrl in bindings.

I'm not sure why they are using Up Arrowhead instead of circumflex
accent (^), but, eh, it works.
@mbnuqw
Copy link
Owner

mbnuqw commented Sep 2, 2023

Great, thank you!

@mbnuqw mbnuqw merged commit 6bcad15 into mbnuqw:v5 Sep 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants