mirror of
https://github.com/airstruck/luigi.git
synced 2025-11-18 12:25:06 +00:00
minor
This commit is contained in:
@@ -9,7 +9,7 @@ return { id = 'mainWindow',
|
||||
{ text = 'Edit',
|
||||
{ text = 'Cut', shortcut = { 'win-ctrl-c', 'mac-gui-c' } },
|
||||
{ text = 'Copy', shortcut = 'c-x' },
|
||||
{ text = 'Paste', shortcut = { 'command-v', 'win-ctrl-v' } },
|
||||
{ text = 'Paste', shortcut = { 'cmd-v', 'win-ctrl-v' } },
|
||||
{ type = 'slider' },
|
||||
},
|
||||
{ text = 'View',
|
||||
|
||||
@@ -26,6 +26,7 @@ end
|
||||
function Shortcut.expandAliases (value)
|
||||
return value
|
||||
:gsub('%f[%a]cmd%-', 'mac-gui-')
|
||||
:gsub('%f[%a]command%-', 'mac-gui-')
|
||||
:gsub('%f[%a]option%-', 'mac-alt-')
|
||||
end
|
||||
|
||||
@@ -74,7 +75,6 @@ function Shortcut.stringify (shortcut)
|
||||
value = value
|
||||
:gsub('%f[%a]c%-', 'cmd-')
|
||||
:gsub('%f[%a]gui%-', 'cmd-')
|
||||
:gsub('%f[%a]command%-', 'cmd-')
|
||||
:gsub('%f[%a]alt%-', 'option-')
|
||||
else
|
||||
value = value
|
||||
|
||||
Reference in New Issue
Block a user