ignore further keybinds on submap change

This commit is contained in:
Vaxry 2022-08-09 19:54:06 +02:00
parent 113ac67a16
commit 9255a4d2ff
1 changed files with 5 additions and 0 deletions

View File

@ -260,6 +260,11 @@ bool CKeybindManager::handleKeybinds(const uint32_t& modmask, const std::string&
// call the dispatcher
Debug::log(LOG, "Keybind triggered, calling dispatcher (%d, %s, %d)", modmask, key.c_str(), keysym);
DISPATCHER->second(k.arg);
if (k.handler == "submap") {
found = true; // don't process keybinds on submap change.
break;
}
}
if (k.repeat) {