Remove shortcut when GUI is disabled and enable keybind

This commit is contained in:
Will Berry
2023-03-14 21:46:52 -04:00
parent e498005c85
commit 28c489eae5
3 changed files with 34 additions and 28 deletions

View File

@@ -47,7 +47,7 @@ end
local manager_gui = {}
function manager_gui.on_lua_shortcut(e)
if e.prototype_name == "cybersyn-toggle-gui" then
if e.prototype_name == "cybersyn-toggle-gui" or e.input_name == "cybersyn-toggle-gui" then
manager.wrapper(e, manager.handle.manager_toggle)
end
end