Fix a bug where the IME pre-edit would desync from Zed (#12651)
fixes #11829 In https://github.com/zed-industries/zed/pull/7494, we introduced IME event buffering, so that we could preempt the IME with a keystroke event in some cases. However, this caused a desynchronization bug in long multi-step IME composition, such as the pre-edit used in the Japanese Romaji keyboard (and other languages). We found that this was due to the IME issuing actions, and then immediately querying the editor's state before we had applied those actions. Therefore, this PR removes IME action buffering. We have tested all of the cases in the `handle_key_event` documentation and added a few of our own. Release Notes: - Fixed an issue where the IME pre-edit could desynchronize from the editor on macOS ([#11829](https://github.com/zed-industries/zed/pull/12651)) --------- Co-authored-by: Jan Solanti <jhs@psonet.com>
M
Mikayla Maki committed
1a0708f28cf302a0fe726a82b8cba63b839076cb
Parent: 62e7900
Committed by GitHub <noreply@github.com>
on 6/4/2024, 7:17:44 PM