Kovid Goyal
bdebb19648
Merge branch 'wayland-hyper' of https://github.com/orki/kitty
2021-08-18 08:29:51 +05:30
Ravi R Kiran
75df0cbcf5
Gate Wayland modifier autodiscovery behind an environment variable
2021-08-17 21:46:09 -05:00
Ravi R Kiran
1b88a68b55
Be even more conservative in declaring success
...
This handles the nonsensical case of Alt_X being mapped to two
different modifiers.
2021-08-17 21:11:55 -05:00
Ravi R Kiran
b0c963b650
Heuristic to find hyper and meta on wayland
2021-08-16 21:59:53 -05:00
Kovid Goyal
be34af4555
Remove inline from .c files
...
It is ignored by compilers and hides unused static functions
2021-08-03 09:11:17 +05:30
Kovid Goyal
6b9b478492
Linux: Fix keyboard layout change keys defined via compose rules not being ignored
2021-05-01 08:09:26 +05:30
Ravi R Kiran
3c4460ca98
Give shift, control and caps lock precedence over other modifiers
2021-04-23 10:47:26 -05:00
Kovid Goyal
ea2db51bbb
Output all modifier indices in debug
2021-04-13 10:21:26 +05:30
Kovid Goyal
cdcf8ed3bd
Add some colors to keyboad debug output
2021-04-13 07:41:47 +05:30
Kovid Goyal
572466eed1
XKB: Honor numlock state when reporting keypad keys
2021-04-13 07:35:13 +05:30
Kovid Goyal
c989a7198b
Add support for the keypad Begin key
...
Fixes #3468
2021-04-11 07:58:27 +05:30
Ravi R Kiran
b5555b9a8d
Handle multiple real modifiers mapping to the same virtual modifier
2021-04-07 21:36:11 -05:00
Kovid Goyal
ac3080f0e2
Fix #3446 (I hope)
2021-04-06 21:51:03 +05:30
Kovid Goyal
0935dd053c
Modifier indices are unsigned
2021-04-06 21:45:02 +05:30
Kovid Goyal
d5448e6902
Add documentation and cleanup previous PR
2021-04-03 06:25:47 +05:30
Ravi R Kiran
953253de99
Implementation of hyper and meta
2021-03-30 14:23:17 -05:00
Kovid Goyal
62997956a0
Start work on Wayland text input protocol support
2021-03-23 16:33:04 +05:30
Kovid Goyal
34d06fa3e9
Use a struct for IME update events
...
Allows for easier extension in the future
2021-03-23 16:05:22 +05:30
Kovid Goyal
a981b46ec9
Use an enum for updateimestate as well
2021-03-23 10:52:11 +05:30
Kovid Goyal
84dcf8fd27
Use an enum for ime_state
2021-03-23 10:42:07 +05:30
Kovid Goyal
a920919b13
Workaround for bug in libxkbcommon/Debian/Ubuntu on en_IN locale
...
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=903373
2021-02-19 12:35:59 +05:30
Kovid Goyal
60e589f775
Recognize Hyper key
...
Also use only one implementation for detecting if a key is a modifier
key
2021-01-21 05:33:14 +05:30
Kovid Goyal
654cd54363
Add the ISO level 3 and 5 shift keys to functional keys
2021-01-19 09:11:44 +05:30
Kovid Goyal
4fea7bd8ef
Fix building on systems with xkbcommon < 1.0
2021-01-17 07:22:21 +05:30
Kovid Goyal
3c648c05ec
Report shifted and alternate keys from the XKB backend
2021-01-16 20:52:15 +05:30
Kovid Goyal
abc1e3f289
Remove the function used to init glfw key events
...
Instead use C99 struct initializers. Much less error prone.
2021-01-16 20:52:14 +05:30
Kovid Goyal
774a6c8c8b
Remove glfw key constants
2021-01-16 20:52:12 +05:30
Kovid Goyal
c0b6078438
Add more keypad keys
2021-01-16 20:52:11 +05:30
Kovid Goyal
ccce8c32a3
Mapping to unicode and back for XKB keys
2021-01-16 20:52:11 +05:30
Kovid Goyal
397d7d044b
Change key data type in some functions
2021-01-16 20:52:11 +05:30
Kovid Goyal
ee47a10b37
Simplify code a bit
2020-07-07 09:44:51 +05:30
Kovid Goyal
b81700144d
Silence another code scanning warning
2020-07-07 09:38:33 +05:30
Kovid Goyal
fbd0e8e26a
X11: Improve handling of multiple keyboards
...
Now pressing a modifier key in one keyboard and a normal key in another works. Fixes #2362
Don't rebuild keymaps on new keyboard events that only change geometry. Fixes #2787
Better handling of multiple keyboards with incompatible layouts (this is for free from the above fixes). Fixes #2726
2020-06-24 12:05:30 +05:30
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
Luflosi
b2d428618c
Add circumflex (^) key
2019-12-22 18:41:07 +01:00
Benoit de Chezelles
28525766a5
Final changes before 'ready for review'
2019-10-16 02:47:14 +02:00
Benoit de Chezelles
7f2b98fad7
Rename all uses of 'scancode' to 'native_key' where relevant
2019-10-16 02:25:20 +02:00
Benoit de Chezelles
2b6dde2ac5
Wish: rename scancode → native_key in glfw codebase
2019-10-16 02:00:24 +02:00
Benoit de Chezelles
0c254fa7c7
GLFWkeyevent: rename scancode → native_key
2019-10-16 02:00:24 +02:00
Kovid Goyal
4ec1a8d9c3
Merge branch 'extract-glfw-key-event-data' of https://github.com/bew/kitty
2019-09-25 15:44:56 +05:30
Benoit de Chezelles
53275c9137
Extract key event data to struct
2019-09-24 19:15:35 +02:00
Luflosi
e619eb9cbb
Add more keyboard keys
2019-09-08 12:32:19 +02:00
Luflosi
97e6978ed8
Order keyboard keys by their ASCII value
2019-09-08 12:32:19 +02:00
Luflosi
6cc720a350
Fix typos
...
Inspired by 4d3ee554b3 .
Found using `codespell`.
2019-08-26 12:31:15 +02:00
Luflosi
28bb123be8
Update the GLFW version number from 3.3 to 3.4
...
Closes https://github.com/kovidgoyal/kitty/issues/1884 .
From a337c56848 .
2019-08-02 11:00:16 -05:00
Kovid Goyal
841c907efc
Build glfw with all warnings enabled
2019-07-01 10:42:07 +05:30
Kovid Goyal
47acc9ff2f
Get rid of GLFW_(TRUE|FALSE)
2019-06-08 08:14:30 +05:30
Kovid Goyal
fe62700825
Get rid of GLFWbool
2019-06-08 08:12:42 +05:30
Kovid Goyal
a51239c6ae
Add support for the underscore key found in some keyboard layouts
...
Fixes #1639
2019-05-24 17:59:50 +05:30
Kovid Goyal
3f2489b306
Linux: Handle keyboards with a "+" key
...
Adds a plus key to glfw so that it can be mapped as a shortcut. Fixes #1224
2018-12-13 09:56:30 +05:30