From bd1832054e9a3d7a7f7e124c778f7f5c5c23a317 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Sun, 9 Apr 2023 18:24:26 -0300 Subject: [PATCH] qt: Add a couple xkb mappings for Japanese Apple keyboards --- src/qt/xkbcommon_keyboard.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/qt/xkbcommon_keyboard.cpp b/src/qt/xkbcommon_keyboard.cpp index e3a058ed2..181f9e057 100644 --- a/src/qt/xkbcommon_keyboard.cpp +++ b/src/qt/xkbcommon_keyboard.cpp @@ -133,7 +133,9 @@ static std::unordered_map xkb_keycodes = { {"HIRA", 0x77}, {"KATA", 0x78}, {"HENK", 0x79}, + {"KANA", 0x79}, /* kana => henkan (for Apple keyboards) */ {"MUHE", 0x7b}, + {"EISU", 0x7b}, /* eisu => muhenkan (for Apple keyboards) */ {"AE13", 0x7d}, /* \| */ {"KPPT", 0x7e}, /* Brazilian Num. */ {"I06", 0x7e}, /* alias of KPPT on keycodes/xfree86 (i.e. X11 forwarding) */ @@ -199,7 +201,7 @@ xkbcommon_init(struct xkb_keymap *keymap) void xkbcommon_close() { - xkbcommon_keymap = NULL; + xkbcommon_keymap = nullptr; } uint16_t