diff --git a/plugins/lua/hotkeys.lua b/plugins/lua/hotkeys.lua index 921a1fd9b..1cd0e74c4 100644 --- a/plugins/lua/hotkeys.lua +++ b/plugins/lua/hotkeys.lua @@ -127,8 +127,8 @@ end function MenuScreen:onSubmit(_, choice) if not choice then return end + dfhack.screen.hideGuard(self, dfhack.run_command, choice.command) self:dismiss() - dfhack.run_command(choice.command) end function MenuScreen:onSubmit2(_, choice)