mirror of
https://github.com/storytold/winit.git
synced 2026-11-22 04:10:45 +01:00
W22: PATCHES.md says macOS apps must take the IME deletion
This commit is contained in:
1 parent
e63d567116
commit
545f01f8a4
1 file changed
+8
@@ -39,4 +39,12 @@ file drag (W15), remove the seat from winit's clipboard (W15), destroy the seat'
|
||||
W17–W27 are the language-support patches (storytold/craft-libs#198); W16 stays with the pinch/rotation
|
||||
patch below.
|
||||
|
||||
W22 gives every macOS window with IME allowed a real caret, so input methods send replacement
|
||||
ranges: press-and-hold accents, dictation corrections, and input methods that switch from marked
|
||||
text to `insertText:replacementRange:` once they see a caret. An app must call
|
||||
`WindowExtMacOS::take_ime_delete_surrounding` (W26) when it handles each `Ime::Commit`, or the
|
||||
replaced text stays and the new text is typed after it. egui-winit `craft/0.37` calls it. With the
|
||||
caret, a held letter in such a window also stops repeating, because AppKit's press-and-hold takes the
|
||||
repeats, as in native text fields.
|
||||
|
||||
Not in this cut: W16 (Wayland pinch/rotation, #4778), the earlier tablet backport (replaced by `craft-tablet`).
|
||||
Reference in new issue
Block a user