diff options
author | Inho Lee <inho.lee@qt.io> | 2023-06-30 09:50:36 +0200 |
---|---|---|
committer | Inho Lee <inho.lee@qt.io> | 2023-07-04 13:42:01 +0000 |
commit | 1652687d34d8e663c53c456b45cf0040570d870d (patch) | |
tree | f50082b02739846d754caf22bd22e76e614e965c /src/gui/platform/unix/qxkbcommon_p.h | |
parent | af9c02234b946c70c35af7fa9dc864323a108fb1 (diff) |
QXkbCommon::isLatin1 : Add a lower bound of Latin1
The range of the Latin1 key is from 0x20 to 0xff
in both xkb_keysym and Qt::Key.
Task-number: QTBUG-113387
Task-number: QTBUG-74479
Pick-to: 6.6 6.5 6.2
Change-Id: I2eaba3129bead9526910f716c211f637804ab592
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'src/gui/platform/unix/qxkbcommon_p.h')
-rw-r--r-- | src/gui/platform/unix/qxkbcommon_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/platform/unix/qxkbcommon_p.h b/src/gui/platform/unix/qxkbcommon_p.h index d27f965a81..8e6613d2b5 100644 --- a/src/gui/platform/unix/qxkbcommon_p.h +++ b/src/gui/platform/unix/qxkbcommon_p.h @@ -60,7 +60,7 @@ public: static xkb_keysym_t lookupLatinKeysym(xkb_state *state, xkb_keycode_t keycode); static bool isLatin1(xkb_keysym_t sym) { - return sym <= 0xff; + return sym >= 0x20 && sym <= 0xff; } static bool isKeypad(xkb_keysym_t sym) { return sym >= XKB_KEY_KP_Space && sym <= XKB_KEY_KP_9; |