diff --git a/plugins/command-prompt.cpp b/plugins/command-prompt.cpp index c53132486..d288f747c 100644 --- a/plugins/command-prompt.cpp +++ b/plugins/command-prompt.cpp @@ -315,7 +315,7 @@ void viewscreen_commandpromptst::feed(std::set *events) command_result show_prompt(color_ostream &out, std::vector & parameters) { - if (Gui::getCurFocus() == "dfhack/commandprompt") + if (Gui::getCurFocus(true) == "dfhack/commandprompt") { Screen::dismiss(Gui::getCurViewscreen(true)); return CR_OK;