Replace 'alt' buttons with 'option' buttons on Macs

This commit is contained in:
Lee Reilly 2016-07-20 12:35:05 -06:00
parent 782939039d
commit 89c4044016
2 changed files with 2 additions and 0 deletions

View File

@ -150,6 +150,7 @@
ns.CheatsheetController.prototype.formatKey_ = function (key) {
if (pskl.utils.UserAgent.isMac) {
key = key.replace('ctrl', 'cmd');
key = key.replace('alt', 'option');
}
key = key.replace(/left/i, '←');
key = key.replace(/up/i, '↑');

View File

@ -27,6 +27,7 @@
descriptor.key = descriptor.key.toUpperCase();
if (pskl.utils.UserAgent.isMac) {
descriptor.key = descriptor.key.replace('CTRL', 'CMD');
descriptor.key = descriptor.key.replace('ALT', 'OPTION');
}
} else {
tpl = pskl.utils.Template.get('tooltip-simple-descriptor-template');