cocoabits / MASShortcut

Modern framework for managing global keyboard shortcuts compatible with Mac App Store. More details:
http://blog.shpakovski.com/2012/07/global-keyboard-shortcuts-in-cocoa.html
BSD 2-Clause "Simplified" License
1.52k stars 220 forks source link

Format the Option modifier as “alt”, not ⌥ #96

Closed zoul closed 7 years ago

zoul commented 7 years ago

Apple has dropped the ⌥ symbol from (some? all?) recent keyboards:

modern Apple keyboard

Which means we are formatting the Option key in a way that can be confusing for some users, since they can’t find the ⌥ key on their keyboards. Note that this problem also applies to Apple themselves, since macOS keeps using the ⌥ symbol in menus.

I suggest that we use the “alt” string instead, because that’s present both on the older and the newest keyboard models. In other words, format Option-K as “alt-K”, not “⌥K”.

@shpakovski, what do you think?

shpakovski commented 7 years ago

Hi Tom! Ugh, this is so controversial… Let’s wait while Apple releases a new MacBook Pro? 😃

UPD: In my mind shortcuts are associated with menu commands, not with physical keys.

UPD 2: Labels alt-⌘X and alt-⇧⌘Y look quite appealing to me, but alt⌘Z without hyphen — not very much.

UPD 3: We may begin with [MASShortcutFormatter setAlternateModifierString:] API and introduce new default later.

UPD 4: What about control?

zoul commented 7 years ago

The trouble is that an app can tell you to press something like ⌥K when there’s no such key as ⌥ on your keyboard. And you’re right – Control is the same problem.

We went through an internal discussion for an app we use MASShortcut for and decided to leave the code as it is, at least for the moment, because the current behaviour is consistent with the system. Which is the most important thing.

So I’m closing the issue – but still, having to explain your users why you use symbols that aren’t on their keyboards sucks.