diff --git a/plugins/command-prompt.cpp b/plugins/command-prompt.cpp index 5e84db831..3cdd83ab3 100644 --- a/plugins/command-prompt.cpp +++ b/plugins/command-prompt.cpp @@ -182,10 +182,14 @@ command_result show_prompt(color_ostream &out, std::vector & param Screen::show(new viewscreen_commandpromptst(params)); return CR_OK; } +bool hotkey_allow_all(df::viewscreen *top) +{ + return true; +} DFhackCExport command_result plugin_init ( color_ostream &out, std::vector &commands) { commands.push_back(PluginCommand( - "command-prompt","Shows a command prompt on window.",show_prompt,false, + "command-prompt","Shows a command prompt on window.",show_prompt,hotkey_allow_all, "command-prompt [entry] - shows a cmd prompt in df window. Entry is used for default prefix (e.g. ':lua')" )); return CR_OK;