Recognize Hyper key

Also use only one implementation for detecting if a key is a modifier
key
This commit is contained in:
Kovid Goyal
2021-01-21 05:33:14 +05:30
parent f6d4b8e0b0
commit 60e589f775
11 changed files with 41 additions and 41 deletions

View File

@@ -31,8 +31,8 @@ typedef struct {
KeyAction action;
} EncodingData;
static inline bool
is_modifier_key(uint32_t key) {
bool
is_modifier_key(const uint32_t key) {
START_ALLOW_CASE_RANGE
switch (key) {
case GLFW_FKEY_LEFT_SHIFT ... GLFW_FKEY_ISO_LEVEL5_SHIFT: