mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Replace 'alt' buttons with 'option' buttons on Macs
This commit is contained in:
parent
782939039d
commit
89c4044016
@ -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, '↑');
|
||||
|
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user