ux: Properly use current key layout for shortcuts

This commit is contained in:
WerWolv
2021-03-26 21:40:35 +01:00
parent 2c3a6d38ab
commit 42461c467f
3 changed files with 13 additions and 8 deletions

View File

@@ -68,7 +68,7 @@ namespace hex {
}
bool ViewCommandPalette::handleShortcut(int key, int mods) {
if (key == GLFW_KEY_P && mods == (GLFW_MOD_SHIFT | GLFW_MOD_CONTROL)) {
if (key == 'P' && mods == (GLFW_MOD_SHIFT | GLFW_MOD_CONTROL)) {
View::doLater([this] {
ImGui::OpenPopup("hex.view.command_palette.name"_lang);
this->m_commandPaletteOpen = true;