Skip to content

Commit

Permalink
Fix IME key event being erased in macOS
Browse files Browse the repository at this point in the history
Fixes Korean IME behavior which calls insertText and setMarkedText at the same time.
  • Loading branch information
HolySkyMin committed Nov 29, 2023
1 parent f82bf35 commit 5962e52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion platform/macos/display_server_macos.mm
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,8 @@
}

void DisplayServerMacOS::pop_last_key_event() {
if (key_event_pos > 0) {
// Does not pop last key event when it is an IME key event.
if (key_event_pos > 0 && key_event_buffer[key_event_pos - 1].raw) {
key_event_pos--;
}
}
Expand Down

0 comments on commit 5962e52

Please sign in to comment.