Skip to content

Commit

Permalink
Merge pull request #85458 from HolySkyMin/mac_korean_fix
Browse files Browse the repository at this point in the history
Fix IME key event being erased in macOS
  • Loading branch information
akien-mga committed Dec 4, 2023
2 parents 6b21a18 + 5962e52 commit c2d7cfe
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 c2d7cfe

Please sign in to comment.