Kovid Goyal
902e94ceac
Fix #5484
2022-09-07 15:09:24 +05:30
Kovid Goyal
992e90b0a3
Fix a regression in 0.26.0 that broke mapping of native keys who key codes did not fit in 21 bits
...
Fixes #5452
2022-08-31 22:19:51 +05:30
Kovid Goyal
3cb572b47a
Fix build on older gcc
2022-08-14 10:12:17 +05:30
Kovid Goyal
63fa0c4e94
Nicer fix for human_repr of keys defined with kitty_mod
2022-08-12 12:37:15 +05:30
Kovid Goyal
ce91b6d9d9
Switch to using the new SingleKey implementation
2022-08-12 12:21:06 +05:30
Kovid Goyal
9f865adb83
DRYer
2022-08-12 11:39:26 +05:30
Kovid Goyal
b54dd1cb48
Increase the max key num that is storeable
2022-08-12 11:37:54 +05:30
Kovid Goyal
ef621aa099
DRYer
...
Also dont store negative values for key. Unset is 0 not -1
2022-08-12 11:35:45 +05:30
Kovid Goyal
f3329fcd34
Fix storage for GLFW_MOD_KITTY
2022-08-12 09:58:50 +05:30
Kovid Goyal
af48547d8b
Implement SingleKey._replace
2022-08-12 09:40:58 +05:30
Kovid Goyal
f228f8368a
A faster version of SingleKey
2022-08-12 09:17:42 +05:30
Kovid Goyal
7215c6d6be
ssh kitten: Allow pressing Ctrl-C to abort ssh before the connection is completed
...
Fixing this involved adding a new mode to kitty where it handles
ctrl-c/z/q by sending signals to the tty foreground process group
instead of delegating to the kernel to do that. Since the pipe may be
full we have no way of knowing when the kernel will get around to
reading the signal byte. So send the signal ourselves.
Fixes #5271
2022-07-20 19:11:14 +05:30
Kovid Goyal
4f8ef05058
Linux: Update cursor position after all key presses not just pre-edit text changes
...
Fixes #5241
2022-06-29 11:37:35 +05:30
Kovid Goyal
8381171c8d
Forgot trailing newline
2022-05-24 06:54:53 +05:30
Kovid Goyal
e7da874b82
GNOME: Workaround for GNOME's text input system going into an infinite loop if cursor position is updated in response to a done event
...
Fixes #5105
2022-05-23 10:36:58 +05:30
pagedown
f646dfa238
Cancel IME for active kitty or OS window only
2022-01-27 11:48:48 +08:00
pagedown
a987fb81a0
Emits an IME lost focus event when the window lost focus or closed
2022-01-27 10:13:57 +08:00
Kovid Goyal
c0be0f74d8
Use commit text instead of a zero key event
...
Thanks @page-down
2022-01-22 21:11:26 +05:30
Kovid Goyal
ff836a85aa
Special case the IME injecting text in on_key_input
2022-01-22 20:00:03 +05:30
Kovid Goyal
f21ddae94f
Handle setMarkedText called from the event loop
...
Also pass through text with zero key
2022-01-22 16:08:50 +05:30
Kovid Goyal
4ab5d97e9b
macOS: Fix IME position incorrect after moving OS window
2021-11-12 08:51:03 +05:30
Kovid Goyal
81babd29e7
DRYer
2021-11-11 22:53:24 +05:30
Kovid Goyal
fa77128026
...
2021-08-21 22:09:20 +05:30
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
dfbe1bd234
Add debug prints for mouse events
2021-05-11 10:22:30 +05:30
Kovid Goyal
6cee6b6429
More accurate ignoring message
2021-04-22 09:31:41 +05:30
Kovid Goyal
84f6aabf5b
Clean up debug keyboard on macOS
2021-04-22 09:28:11 +05:30
Kovid Goyal
cdcf8ed3bd
Add some colors to keyboad debug output
2021-04-13 07:41:47 +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
84dcf8fd27
Use an enum for ime_state
2021-03-23 10:42:07 +05:30
Kovid Goyal
dc3ad80d24
Window may not be in current os window if triggerred shortcut is detach_window
2021-02-25 07:20:07 +05:30
Kovid Goyal
9e7031f5d8
Dont call window_for_id() unnecessarily
2021-02-24 13:38:38 +05:30
Kovid Goyal
cca590c20a
Fix a use-after-free introduced in the recent key handling refactor
2021-02-24 13:32:27 +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
19a3635c64
Dont send release events for kitty shortcuts to children
2021-01-16 20:52:15 +05:30
Kovid Goyal
0714fd376b
Fix handling of ctrl key in legacy mode
...
Also change the glfw constants used for the modifiers to match those
used in the terminal encoding. Less likely to make mistakes translating
that way.
2021-01-16 20:52:14 +05:30
Kovid Goyal
8f5d42fa11
Python wrapper for key events from window system
2021-01-16 20:52:14 +05:30
Kovid Goyal
c519013b20
Add tests for legacy letter key encodings
2021-01-16 20:52:13 +05:30
Kovid Goyal
774a6c8c8b
Remove glfw key constants
2021-01-16 20:52:12 +05:30
Kovid Goyal
a30ea2b7f8
Implement progressive enhancement of key event reporting
2021-01-16 20:52:12 +05:30
Kovid Goyal
c8a9336160
Code to encode key events
2021-01-16 20:52:12 +05:30
Kovid Goyal
a3fc3233cd
Fix pre-edit text not always being cleared with iBus input
...
Fixes #2862
2020-07-18 19:31:38 +05:30
Luflosi
85fe783652
Fix fake scroll when scrolling in unfocused kitty window
...
Scrolling should happen in the kitty window under the mouse cursor, not in the currently active kitty window.
2020-06-05 16:44:11 +02:00
Luflosi
b796ceecdd
Add Caps Lock to the list of modifier keys
...
When a key is pressed and `mouse_hide_wait` is less than zero, kitty will hide the mouse cursor. When a key is pressed, kitty will also scroll the history to the bottom. Both of these things don't happen if the key being pressed was a modifier key. Both of these things should not happen when Caps Lock is pressed, so this key should be added to the list of modifier keys.
`is_modifier_key()` is not used for anything else.
2019-11-09 00:41:12 +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
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
Kovid Goyal
6a31909557
Make the MIN and MAX macros typesafe
2019-07-01 17:03:47 +05:30
Kovid Goyal
6b9c71ec62
...
2019-06-04 17:24:42 +05:30