Merge branch 'ignore-keyboard-layout-switch-keys' of https://github.com/trygveaa/kitty

This commit is contained in:
Kovid Goyal 2020-04-10 21:46:07 +05:30
commit 688606ff7c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 6 additions and 0 deletions

View File

@ -31,6 +31,9 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
- macOS: Render multi-cell PUA characters centered, matching behavior on other
platforms
- Linux: Ignore keys is they are designated as layout/group/mode switch keys
(:iss:`2519`)
0.17.2 [2020-03-29]
--------------------

3
glfw/xkb_glfw.c vendored
View File

@ -620,6 +620,9 @@ glfw_xkb_handle_key_event(_GLFWwindow *window, _GLFWXKBData *xkb, xkb_keycode_t
}
if (key_text[0]) { debug("%s: %s ", text_type, key_text); }
}
if (xkb_sym == XKB_KEY_ISO_First_Group || xkb_sym == XKB_KEY_ISO_Last_Group || xkb_sym == XKB_KEY_ISO_Next_Group || xkb_sym == XKB_KEY_ISO_Prev_Group || xkb_sym == XKB_KEY_Mode_switch) {
return;
}
int glfw_sym = glfw_key_for_sym(xkb_sym);
bool is_fallback = false;
if (glfw_sym == GLFW_KEY_UNKNOWN && !key_text[0]) {