|
|
@ -315,7 +315,7 @@ void viewscreen_commandpromptst::feed(std::set<df::interface_key> *events)
|
|
|
|
|
|
|
|
|
|
|
|
command_result show_prompt(color_ostream &out, std::vector <std::string> & parameters)
|
|
|
|
command_result show_prompt(color_ostream &out, std::vector <std::string> & parameters)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (Gui::getCurFocus() == "dfhack/commandprompt")
|
|
|
|
if (Gui::getCurFocus(true) == "dfhack/commandprompt")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Screen::dismiss(Gui::getCurViewscreen(true));
|
|
|
|
Screen::dismiss(Gui::getCurViewscreen(true));
|
|
|
|
return CR_OK;
|
|
|
|
return CR_OK;
|
|
|
|