From 99659e7e00c13fcce107152ed8cdbd05a0fd9e15 Mon Sep 17 00:00:00 2001 From: Warmist Date: Mon, 26 May 2014 18:16:32 +0300 Subject: [PATCH] cmd-prompt needs to work on ANY screen. This fixes it. --- plugins/command-prompt.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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;