mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 10:41:58 +02:00
Lock keys should not be sent to applications in legacy mode
This commit is contained in:
@@ -33,7 +33,16 @@ typedef struct {
|
|||||||
|
|
||||||
static inline bool
|
static inline bool
|
||||||
is_modifier_key(uint32_t key) {
|
is_modifier_key(uint32_t key) {
|
||||||
return GLFW_FKEY_LEFT_SHIFT <= key && key <= GLFW_FKEY_RIGHT_SUPER;
|
START_ALLOW_CASE_RANGE
|
||||||
|
switch (key) {
|
||||||
|
case GLFW_FKEY_LEFT_SHIFT ... GLFW_FKEY_RIGHT_SUPER:
|
||||||
|
case GLFW_FKEY_CAPS_LOCK:
|
||||||
|
case GLFW_FKEY_SCROLL_LOCK:
|
||||||
|
case GLFW_FKEY_NUM_LOCK:
|
||||||
|
return true;
|
||||||
|
default:
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
|
|||||||
Reference in New Issue
Block a user