mirror of
https://github.com/airstruck/luigi.git
synced 2025-12-19 02:16:43 +00:00
shortcut attrib: allow multiple shortcuts per widget
This commit is contained in:
@@ -176,6 +176,8 @@ local function initialize (self)
|
||||
shortcut = ' '
|
||||
edgeType = 'menu.expander'
|
||||
else
|
||||
--TODO: only displays first of multiple shortcuts, change this?
|
||||
if type(shortcut) == 'table' then shortcut = shortcut[1] end
|
||||
shortcut = shortcut:gsub('%f[%w].', string.upper) -- :gsub('-', '+')
|
||||
end
|
||||
self.height = font:getLineHeight() + pad * 2
|
||||
|
||||
Reference in New Issue
Block a user