From 8cd9c88981fa06bf77759fbbf4fd97171cdbc713 Mon Sep 17 00:00:00 2001 From: myk002 Date: Wed, 9 Nov 2022 14:34:39 -0800 Subject: [PATCH] use new standard "anywhere" hotkey in Gui --- plugins/command-prompt.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plugins/command-prompt.cpp b/plugins/command-prompt.cpp index 94398837a..433b8fba3 100644 --- a/plugins/command-prompt.cpp +++ b/plugins/command-prompt.cpp @@ -337,17 +337,14 @@ command_result show_prompt(color_ostream &out, std::vector & param Screen::show(dts::make_unique(params), plugin_self); 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", "Allows you to run a DFHack command from in-game.", show_prompt, - hotkey_allow_all)); + Gui::anywhere_hotkey)); return CR_OK; }