1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-27 02:25:28 +03:00

wayland: ime: clear compose state after commit

refs: #1772
This commit is contained in:
Wez Furlong 2022-07-09 23:12:43 -07:00
parent ffe76bae3a
commit 607287935f

View File

@ -44,16 +44,18 @@ impl Inner {
}));
}
Event::CommitString { text } => {
conn.dispatch_to_focused_window(match text {
Some(text) => WindowEvent::KeyEvent(KeyEvent {
if let Some(text) = text {
conn.dispatch_to_focused_window(WindowEvent::KeyEvent(KeyEvent {
key: KeyCode::composed(&text),
modifiers: Modifiers::NONE,
repeat_count: 1,
key_is_down: true,
raw: None,
}),
None => WindowEvent::AdviseDeadKeyStatus(DeadKeyStatus::None),
});
}));
}
conn.dispatch_to_focused_window(WindowEvent::AdviseDeadKeyStatus(
DeadKeyStatus::None,
));
}
Event::Done { serial: _ } => {}
_ => {}