| 42 | } |
| 43 | |
| 44 | static int cleanupHotkeys(lua_State *) { |
| 45 | DEBUG(log).print("cleaning up old stub keybindings for: {}\n", join_strings(", ", Gui::getCurFocus(true))); |
| 46 | std::for_each(sorted_keys.begin(), sorted_keys.end(), [](const string &sym) { |
| 47 | string keyspec = sym + "@" + MENU_SCREEN_FOCUS_STRING; |
| 48 | DEBUG(log).print("clearing keybinding: {}\n", keyspec); |
| 49 | Core::getInstance().getHotkeyManager()->removeKeybind(keyspec); |
| 50 | }); |
| 51 | valid = false; |
| 52 | sorted_keys.clear(); |
| 53 | current_bindings.clear(); |
| 54 | return 0; |
| 55 | } |
| 56 | |
| 57 | static bool should_hide_armok(color_ostream &out, const string &cmdline) { |
| 58 | bool should_hide = false; |
no test coverage detected