Merge pull request #69 from mimmoradi/main

Fix a bux regarding keybindings of X key
This commit is contained in:
vaxerski 2022-04-29 21:46:25 +02:00 committed by GitHub
commit 762b563e56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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