kitty/glfw
Trygve Aaberge 2e3f9dffa7 Ignore keys for switching keyboard layout
XKB has various options for using keys to switch the keyboard layout.
When these are set, XKB will return keysyms which are unknown to GLFW,
so kitty will fallback to using a keymap without the options set, which
causes the keys to be interpreted as the original keysyms.

However, when these options are set, kitty shouldn't interpret the keys.
Therefore, check for some specific keysyms and return before translating
to GLFW keysyms.

There may be more keysyms which should be ignored, but as far as I can
see from https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/blob/xkeyboard-config-2.29/symbols/group
these are the ones which can be triggered by XKB options.

Fixes #2519
2020-04-10 17:21:53 +02:00
..
__init__.py Add type checking for glfw module as well 2020-03-06 07:59:55 +05:30
backend_utils.c Implement drag and drop of text/plain for Wayland as well 2020-03-19 13:28:21 +05:30
backend_utils.h Implement drag and drop of text/plain for Wayland as well 2020-03-19 13:28:21 +05:30
cocoa_init.m Cocoa: Add fully dynamic loading of Vulkan loader 2020-01-17 14:18:28 +01:00
cocoa_joystick.h Update the GLFW version number from 3.3 to 3.4 2019-08-02 11:00:16 -05:00
cocoa_joystick.m Update the GLFW version number from 3.3 to 3.4 2019-08-02 11:00:16 -05:00
cocoa_monitor.m Cocoa: Only create per-monitor display link once 2020-01-02 18:05:38 +01:00
cocoa_platform.h Cocoa: Add fully dynamic loading of Vulkan loader 2020-01-17 14:18:28 +01:00
cocoa_window.m Actually, we should use text/plain rather than text/uri-list since we are already converting to filesystem paths 2020-03-19 13:40:02 +05:30
context.c Update the GLFW version number from 3.3 to 3.4 2019-08-02 11:00:16 -05:00
dbus_glfw.c Use datatype monotonic_t instead of double to keep track of time 2019-09-25 17:43:11 +02:00
dbus_glfw.h Update the GLFW version number from 3.3 to 3.4 2019-08-02 11:00:16 -05:00
egl_context.c Add curly braces 2019-12-18 18:12:48 +01:00
egl_context.h Update the GLFW version number from 3.3 to 3.4 2019-08-02 11:00:16 -05:00
glfw.py Fix #2466 2020-03-24 17:07:37 +05:30
glfw3.h Implement drag and drop of text/plain for Wayland as well 2020-03-19 13:28:21 +05:30
glx_context.c Update the GLFW version number from 3.3 to 3.4 2019-08-02 11:00:16 -05:00
glx_context.h Fix bool indentation 2019-08-30 15:32:20 +02:00
ibus_glfw.c Rename all uses of 'scancode' to 'native_key' where relevant 2019-10-16 02:25:20 +02:00
ibus_glfw.h Extract key event data to struct 2019-09-24 19:15:35 +02:00
init.c Remove unused code 2019-12-19 16:27:25 +05:30
input.c Implement drag and drop of text/plain for Wayland as well 2020-03-19 13:28:21 +05:30
internal.h Implement drag and drop of text/plain for Wayland as well 2020-03-19 13:28:21 +05:30
linux_joystick.c Reduce difference to GLFW upstream 2019-11-23 13:19:06 +01:00
linux_joystick.h Fix bool indentation 2019-08-30 15:32:20 +02:00
linux_notify.c Build glfw with all warnings enabled 2019-07-01 10:42:07 +05:30
linux_notify.h Set a default action name on the dbus notification 2019-02-03 13:53:26 +05:30
main_loop.h Use datatype monotonic_t instead of double to keep track of time 2019-09-25 17:43:11 +02:00
mappings.h Update the GLFW version number from 3.3 to 3.4 2019-08-02 11:00:16 -05:00
memfd.h Convert some tabs to spaces 2019-02-02 22:08:32 +01:00
monitor.c Fix comparison of video modes of equal area 2019-09-08 09:12:39 +05:30
monotonic.c Fix #2187 2019-12-08 22:37:47 +05:30
nsgl_context.h Reduce difference to GLFW upstream 2019-11-23 13:19:06 +01:00
nsgl_context.m NSGL: Fix disabling of Retina resolution 2019-12-15 20:54:21 +05:30
null_init.c Remove unused code 2019-12-19 16:27:25 +05:30
null_joystick.c Mark unused parameters in glfw/null_*.c 2019-09-19 20:21:09 +02:00
null_joystick.h Update the GLFW version number from 3.3 to 3.4 2019-08-02 11:00:16 -05:00
null_monitor.c Mark unused parameters in glfw/null_*.c 2019-09-19 20:21:09 +02:00
null_platform.h Update the GLFW version number from 3.3 to 3.4 2019-08-02 11:00:16 -05:00
null_window.c Implement resize by increment 2019-12-09 08:33:32 +01:00
osmesa_context.c Update the GLFW version number from 3.3 to 3.4 2019-08-02 11:00:16 -05:00
osmesa_context.h Update the GLFW version number from 3.3 to 3.4 2019-08-02 11:00:16 -05:00
posix_thread.c Update the GLFW version number from 3.3 to 3.4 2019-08-02 11:00:16 -05:00
posix_thread.h Fix bool indentation 2019-08-30 15:32:20 +02:00
source-info.json Remove unused code 2019-12-19 16:27:25 +05:30
vulkan.c Cocoa: Add fully dynamic loading of Vulkan loader 2020-01-17 14:18:28 +01:00
window.c Implement resize by increment 2019-12-09 08:33:32 +01:00
wl_init.c Implement drag and drop of text/plain for Wayland as well 2020-03-19 13:28:21 +05:30
wl_monitor.c Update the GLFW version number from 3.3 to 3.4 2019-08-02 11:00:16 -05:00
wl_platform.h Implement drag and drop of text/plain for Wayland as well 2020-03-19 13:28:21 +05:30
wl_window.c Implement drag and drop of text/plain for Wayland as well 2020-03-19 13:28:21 +05:30
x11_init.c Implement drag and drop of text/plain for Wayland as well 2020-03-19 13:28:21 +05:30
x11_monitor.c X11: Assume 96 DPI if RandR monitor size is zero 2019-11-22 02:07:34 +01:00
x11_platform.h Implement drag and drop of text/plain for Wayland as well 2020-03-19 13:28:21 +05:30
x11_window.c X11: Handle invalid data being sent with drag events by some applications 2020-04-02 21:01:19 +05:30
xkb_glfw.c Ignore keys for switching keyboard layout 2020-04-10 17:21:53 +02:00
xkb_glfw.h Rename all uses of 'scancode' to 'native_key' where relevant 2019-10-16 02:25:20 +02:00