| 35 | static vector<string> sorted_keys; |
| 36 | |
| 37 | static bool can_invoke(const string &cmdline, df::viewscreen *screen) { |
| 38 | vector<string> cmd_parts; |
| 39 | split_string(&cmd_parts, cmdline, " "); |
| 40 | |
| 41 | return Core::getInstance().getPluginManager()->CanInvokeHotkey(cmd_parts[0], screen); |
| 42 | } |
| 43 | |
| 44 | static int cleanupHotkeys(lua_State *) { |
| 45 | DEBUG(log).print("cleaning up old stub keybindings for: {}\n", join_strings(", ", Gui::getCurFocus(true))); |
no test coverage detected