|
|
|
@ -37,7 +37,7 @@ static bool can_invoke(const string &cmdline, df::viewscreen *screen) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int cleanupHotkeys(lua_State *) {
|
|
|
|
|
DEBUG(log).print("cleaning up old stub keybindings for:\n %s\n", join_strings(", ", Gui::getCurFocus(true)).c_str());
|
|
|
|
|
DEBUG(log).print("cleaning up old stub keybindings for: %s\n", join_strings(", ", Gui::getCurFocus(true)).c_str());
|
|
|
|
|
std::for_each(sorted_keys.begin(), sorted_keys.end(), [](const string &sym) {
|
|
|
|
|
string keyspec = sym + "@" + MENU_SCREEN_FOCUS_STRING;
|
|
|
|
|
DEBUG(log).print("clearing keybinding: %s\n", keyspec.c_str());
|
|
|
|
|