Skip to content

Commit

Permalink
fix(ribir): πŸ› intercept keyevent when in ime pre edit
Browse files Browse the repository at this point in the history
  • Loading branch information
wjian23 committed Dec 7, 2023
1 parent 2655380 commit c3c20c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ribir/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ impl App {
state,
..
} = event;
if unsafe { PRE_EDIT_HANDLE.is_in_pre_edit() } {
return;
}
wnd.processes_keyboard_event(physical_key, logical_key, repeat, location, state);
if state == ElementState::Pressed {
if let Some(txt) = text {
Expand Down

0 comments on commit c3c20c7

Please sign in to comment.