parent
9c4f781979
commit
c101859897
|
@ -523,12 +523,10 @@ function keygrabber:add_keybinding(key, _keycode, _callback, _description)
|
|||
description = _description,
|
||||
on_press = _callback
|
||||
}
|
||||
else
|
||||
_keycode = key.key
|
||||
end
|
||||
|
||||
self._private.keybindings[key.key] = self._private.keybindings[key.key] or {}
|
||||
table.insert(self._private.keybindings[_keycode], key)
|
||||
table.insert(self._private.keybindings[key.key], key)
|
||||
|
||||
if self.export_keybindings then
|
||||
add_root_keybindings(self, {key})
|
||||
|
|
Loading…
Reference in New Issue