Change summary
crates/gpui/src/platform/linux/x11/client.rs | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
Detailed changes
@@ -1315,17 +1315,9 @@ impl X11Client {
return None;
};
let mut state = self.0.borrow_mut();
- let keystroke = state.pre_key_char_down.take();
state.composing = false;
drop(state);
- if let Some(mut keystroke) = keystroke {
- keystroke.key_char = Some(text);
- window.handle_input(PlatformInput::KeyDown(crate::KeyDownEvent {
- keystroke,
- is_held: false,
- }));
- }
-
+ window.handle_ime_commit(text);
Some(())
}