pagedown
4d920b182f
macOS: Cancel IME composition when receive loss of focus event
2022-01-27 10:07:18 +08:00
pagedown
b3f678cf6f
Improve debug log
2022-01-26 18:28:37 +08:00
pagedown
7f3715cd3e
Use the input context instance from GLFWContentView
2022-01-26 18:25:37 +08:00
pagedown
a3aaaa1efb
macOS: Explicitly cancel IME composition when losing the focus
2022-01-26 18:21:20 +08:00
Kovid Goyal
02e1272502
Slightly improve debug text
2022-01-23 20:40:41 +05:30
pagedown
b2d0c35fc2
Clear the pre-edit text only when inserting non-control characters
...
Maintains the pre-edit input state after pressing the modifier key
combination or function key while using the IME.
2022-01-23 22:22:24 +08:00
pagedown
3ee12082f2
No need to update the pre-edit text
2022-01-23 22:16:26 +08:00
pagedown
1ce4fc9c8c
Check for ASCII control chars before sending text
2022-01-23 21:40:27 +08:00
pagedown
57e2866b68
macOS: Fix caps_lock not clearing pre-edit text when using IME
2022-01-23 18:50:55 +08:00
pagedown
195fc1a270
Minor tweaks to macOS key event debug log
2022-01-23 18:45:18 +08:00
Kovid Goyal
39e56f1864
Dont check the return value of handleEvent
...
It's apparently meaningless, despite what the docs say
2022-01-23 12:47:29 +05:30
Kovid Goyal
053bb999d3
Merge branch 'fix-macos-ime-modifiers' of https://github.com/page-down/kitty
2022-01-23 10:41:45 +05:30
pagedown
83884f42f8
macOS: Fix text insertion by modifier keys when using IME
2022-01-23 01:50:37 +08:00
pagedown
fbaf3e2f49
Update preedit text with markedText
...
This fixes the preedit text being cleared when using shortcut keys to
switch candidate text in the input state.
2022-01-23 00:01:08 +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
688a3eaef7
Check if input context handles flagschanged event
2022-01-22 16:17:01 +05:30
Kovid Goyal
3b15b46d08
Also deal with setMarkedText called from event loop with actual marked text
2022-01-22 16:13:44 +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
cd9b752926
...
2022-01-22 16:02:05 +05:30
Kovid Goyal
655a5a2808
Handle insertText called from the event loop by the text input system
2022-01-22 15:51:43 +05:30
Kovid Goyal
3867620be5
...
2022-01-22 14:58:10 +05:30
Kovid Goyal
03a7361325
Some debug prints for flagsChanged
2022-01-22 14:57:13 +05:30
Kovid Goyal
e8c683db8b
A new approach to handling flagsChanged with IME
...
Bypass cocoa's flagsChanged handling and call handleevent ourselves,
this allows us to know exactly what the IME is doing. Hopefully fixes
issues with IMEs that change state on modifier key presses.
Fixes #4541
2022-01-22 14:47:57 +05:30
Kovid Goyal
1f4372b34c
Test if text is being inserted rather than if text is present
2022-01-20 11:16:05 +05:30
Kovid Goyal
b090602fdb
macOS: Fix the shift key not clearing pre-edit text in IME
...
Fixes #4541
2022-01-20 08:00:17 +05:30
Kovid Goyal
16d3e82515
Add debug output when ignoring key press during IME
2022-01-19 14:50:12 +05:30
Kovid Goyal
21bc5bf8c0
Dont leak a reference to input_source_at_last_key_event
2022-01-19 12:06:54 +05:30
Kovid Goyal
ca4840717b
macOS: Fix using shortcuts from the global menu bar as subsequent key presses in a multi key mapping not working
...
Fixes #4519
2022-01-15 13:56:18 +05:30
Kovid Goyal
396906860d
macOS: When checking for global shortcuts handle shifted form of cmd+`
2022-01-15 10:14:06 +05:30
pagedown
704487f0ce
macOS: Release input context
2022-01-14 14:18:03 +08:00
Kovid Goyal
0a89fe2e17
Merge branch 'fix-macos-text-input-beep' of https://github.com/page-down/kitty
2022-01-13 20:23:23 +05:30
pagedown
5b5651ca7d
macOS: Suppress the key combinations beep sound
2022-01-13 22:51:53 +08:00
Kovid Goyal
5e5cd1acc8
Simplify flagsChanged and make it more robust
...
Now it only sends a key event to kitty if an actual modifier key was
pressed/released.
2022-01-13 20:13:55 +05:30
Kovid Goyal
f9d2167c97
macOS: Respect the users system-wide global keyboard shortcut preferences
...
Note that we currently dont handle live reload of global shortcut
preferences. I cant be bothered. Patches welcome.
Fixes #4501
2022-01-13 13:36:58 +05:30
Nathan Pearson
7c33d7ef17
Bumps version from 10.15 to 10.15.7 (latest minor)
2022-01-11 07:31:37 -07:00
Nathan Pearson
2ccfecb5ae
Fixes comment
2022-01-11 06:39:48 -07:00
Nathan Pearson
a40ff85e1a
Fixes traditional fullscreen hide for Mac OS >= 10.15
2022-01-11 06:25:39 -07:00
Kovid Goyal
7023c7a8ae
...
2022-01-10 21:15:24 +05:30
pagedown
f7be4fab48
macOS: Allow mapping secure keyboard entry shortcut
2022-01-09 22:54:03 +08:00
Kovid Goyal
356897a32d
macOS: Persist "Secure Keyboard Entry" across restarts to match the behavior of Terminal.app
...
Fixes #4471
2022-01-08 14:13:14 +05:30
Kovid Goyal
ac0c10c170
Simplify if condition
2022-01-08 14:06:22 +05:30
pagedown
d0fa0516f5
macOS: Fix keyboard input not working after toggling full screen
2021-12-13 08:58:52 +08:00
Kovid Goyal
bd288bd18f
Linux: Fix release event for the final key in a compose sequence not being reported. Fixes #4285
2021-11-29 19:26:16 +05:30
Kovid Goyal
acdf06bf5d
Tell cocoa the previous character range is invalid when updating IME position
...
Without this IME popup position is sometimes incorrect, for instance, at
startup
2021-11-28 22:11:21 +05:30
pagedown
088b7cde4f
Update IME status when window lost focus
2021-11-28 23:09:35 +08:00
pagedown
8e87b639fa
Use macOS 11.0 version number
2021-11-19 14:41:19 +08:00
Kovid Goyal
0965fc45f2
macOS: Fix keyboard input not working after toggling traditional fullscreen till the window is clicked in
2021-11-13 14:20:18 +05:30
Kovid Goyal
181178b0ea
macOS: use a consistent technique to get window size
...
This fixes an issue where restoring from traditional fullscreen to a
maximized state was resulting in an incorrectly sized frame buffer. Now
all framebuffer and window size calculation happens in the same way in
all the various glfw codepaths that do it.
2021-11-13 13:42:12 +05:30
Kovid Goyal
3483722475
Remove pointless code
2021-11-13 12:13:28 +05:30
Kovid Goyal
56e63baf5a
macOS: manually trigger windowDidResize when fullscreening
...
Fixes #4230
Fixes #4229
2021-11-13 11:49:55 +05:30