ignore further keybinds on submap change

This commit is contained in:
Vaxry 2022-08-09 19:54:06 +02:00
parent 113ac67a16
commit 9255a4d2ff

View file

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