fix ooga booga

This commit is contained in:
vaxerski 2022-04-29 21:39:48 +02:00
parent 46c282bad5
commit 62a1805360

View file

@ -43,7 +43,7 @@ uint32_t KeybindManager::getKeyCodeFromName(std::string name) {
} }
try { try {
returnValue = returnValue.substr(returnValue.find_first_of('x') + 1); returnValue = returnValue.substr(returnValue.find("0x") + 2);
returnValue = returnValue.substr(0, returnValue.find_first_of(' ')); returnValue = returnValue.substr(0, returnValue.find_first_of(' '));
Debug::log(LOG, "queried for key " + name + " -> response keysym " + returnValue); Debug::log(LOG, "queried for key " + name + " -> response keysym " + returnValue);
@ -74,7 +74,7 @@ uint32_t KeybindManager::getKeyCodeFromName(std::string name) {
} }
try { try {
returnValue = returnValue.substr(returnValue.find_first_of('x') + 1); returnValue = returnValue.substr(returnValue.find("0x") + 2);
returnValue = returnValue.substr(0, returnValue.find_first_of(' ')); returnValue = returnValue.substr(0, returnValue.find_first_of(' '));
Debug::log(LOG, "queried for key " + name + " -> response keysym " + returnValue); Debug::log(LOG, "queried for key " + name + " -> response keysym " + returnValue);