fix: Shortcuts not working correctly with non-western keyboards

This commit is contained in:
WerWolv
2023-11-17 20:27:42 +01:00
parent e7bfa483f8
commit 2d45dce075
3 changed files with 31 additions and 35 deletions

View File

@@ -189,7 +189,15 @@ namespace hex {
}
bool operator==(const Shortcut &other) const {
return this->m_keys == other.m_keys;
auto thisKeys = this->m_keys;
auto otherKeys = other.m_keys;
thisKeys.erase(CurrentView);
thisKeys.erase(AllowWhileTyping);
otherKeys.erase(CurrentView);
otherKeys.erase(AllowWhileTyping);
return thisKeys == otherKeys;
}
bool isLocal() const {