mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-05-05 15:33:00 +00:00
macos: key input that clears preedit without text shouldn't encode
Fixes #7225
This commit is contained in:
parent
7daabdddef
commit
e5e89bcbe4
@ -975,7 +975,14 @@ extension Ghostty {
|
|||||||
event: event,
|
event: event,
|
||||||
translationEvent: translationEvent,
|
translationEvent: translationEvent,
|
||||||
text: translationEvent.ghosttyCharacters,
|
text: translationEvent.ghosttyCharacters,
|
||||||
composing: markedText.length > 0
|
|
||||||
|
// We're composing if we have preedit (the obvious case). But we're also
|
||||||
|
// composing if we don't have preedit and we had marked text before,
|
||||||
|
// because this input probably just reset the preedit state. It shouldn't
|
||||||
|
// be encoded. Example: Japanese begin composing, the press backspace.
|
||||||
|
// This should only cancel the composing state but not actually delete
|
||||||
|
// the prior input characters (prior to the composing).
|
||||||
|
composing: markedText.length > 0 || markedTextBefore
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user