Kovid Goyal
79fba9dd9a
Use the dynamic property instead of testing identifier serialization
2022-09-09 15:39:00 +05:30
Kovid Goyal
9c5d1f9771
Pass null bytes through the clipboard on cocoa
2022-09-09 13:12:12 +05:30
Kovid Goyal
be89da2271
Handle dyn prefixes
2022-09-09 11:59:49 +05:30
Kovid Goyal
0e7da8643e
Get cocoa clipboard backend working
2022-09-09 10:59:10 +05:30
Kovid Goyal
410b1816ad
More work on cocoa clipboard backend
2022-09-09 07:39:38 +05:30
Kovid Goyal
bcfa2a64e4
Start work on new clipboard api support for macos
2022-09-08 21:45:13 +05:30
Rafael Kitover
7b75f055ea
Fix build on macOS High Sierra
...
Check for >= 10.14 using Availability.h to use the accessibilityRole
callback which does not seem to be available in 10.13.
Signed-off-by: Rafael Kitover <rkitover@gmail.com>
2022-08-20 16:08:28 +00:00
Kovid Goyal
5bba1a0851
get_current_selection should return char* not const char*
2022-08-09 09:05:13 +05:30
Kovid Goyal
e9823eb40c
Cleanup previous PR
2022-08-09 08:54:47 +05:30
pagedown
74714f942a
Implement macOS accessibility protocol to provide selected text
...
Allow "Speak selection" (Option+Esc) to work properly.
2022-08-09 11:02:12 +08:00
Kovid Goyal
d04d4444af
implement primary selection api on cocoa as stubs, can be useful for #5357
2022-08-06 12:59:15 +05:30
Kovid Goyal
609bcd68dd
Fix #5161
2022-06-02 10:32:43 +05:30
Kovid Goyal
cabfcbcb69
macOS: When pasting text and the clipboard has a filesystem path, paste the full path instead of the text, which is sometimes just the file name
...
Fixes #5142
2022-05-30 14:40:45 +05:30
Kovid Goyal
a36d5dcde1
GLFW API for changing colorspace of windows on cocoa
2022-04-26 10:56:34 +05:30
pagedown
3db0aab24b
macOS: Fix the path encoding issue from drag and drop files
2022-03-25 09:14:56 +08:00
Kovid Goyal
6689d312a3
macOS: Paste multiple URLs separated by newlines
...
Fixes #4734
2022-02-25 10:17:36 +05:30
Kovid Goyal
fdc9835587
Cleanup previous PR
2022-02-18 13:44:25 +05:30
pagedown
58e8609c1a
macOS: Ensure the cursor is updated once
...
macOS will set the cursor to arrow after milliseconds after the switch
desktop animation ends. So the cursor that was updated immediately after
the focus will be changed again. This also affects toggling fullscreen.
2022-02-18 13:52:19 +08:00
pagedown
69c5c49094
Disable cursor rects
2022-02-18 13:52:00 +08:00
pagedown
ff8de7607a
Also handles the case where toggleFullScreen does not get called
2022-02-18 13:50:46 +08:00
pagedown
6d0721341b
Fix phantom window appears when executing full screen in transition
2022-02-17 15:47:03 +08:00
pagedown
51d591e177
macOS: Allow opening URLs with kitty
2022-02-05 13:05:41 +08:00
Luflosi
347c0d4de4
Fix compilation on macOS 10.12
...
Without this commit, kitty would fail to compile on macOS 10.12 with the error "use of undeclared identifier".
This problem was introduced in f7be4fab48
, where some code was moved to a different file, without moving the corresponding `#define` statements.
2022-01-27 12:21:17 +01:00
pagedown
b9a612fb9c
macOS: Clean up any text that may not have been sent when loses focus
2022-01-27 12:37:17 +08:00
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