mirror of
https://github.com/airstruck/luigi.git
synced 2026-01-09 15:58:22 +00:00
Merge pull request #35 from rm-code/gh-pages
Use cmd abbreviation instead of command on OSX
This commit is contained in:
@@ -25,7 +25,7 @@ end
|
|||||||
|
|
||||||
function Shortcut.expandAliases (value)
|
function Shortcut.expandAliases (value)
|
||||||
return value
|
return value
|
||||||
:gsub('%f[%a]command%-', 'mac-gui-')
|
:gsub('%f[%a]cmd%-', 'mac-gui-')
|
||||||
:gsub('%f[%a]option%-', 'mac-alt-')
|
:gsub('%f[%a]option%-', 'mac-alt-')
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -72,8 +72,9 @@ function Shortcut.stringify (shortcut)
|
|||||||
if Shortcut.appliesToPlatform(value) then
|
if Shortcut.appliesToPlatform(value) then
|
||||||
if isMac then
|
if isMac then
|
||||||
value = value
|
value = value
|
||||||
:gsub('%f[%a]c%-', 'command-')
|
:gsub('%f[%a]c%-', 'cmd-')
|
||||||
:gsub('%f[%a]gui%-', 'command-')
|
:gsub('%f[%a]gui%-', 'cmd-')
|
||||||
|
:gsub('%f[%a]command%-', 'cmd-')
|
||||||
:gsub('%f[%a]alt%-', 'option-')
|
:gsub('%f[%a]alt%-', 'option-')
|
||||||
else
|
else
|
||||||
value = value
|
value = value
|
||||||
|
|||||||
Reference in New Issue
Block a user