mirror of
https://github.com/danbulant/cushy
synced 2026-05-25 12:52:40 +00:00
Enabling IME
This commit is contained in:
parent
87578e5c76
commit
8607fc51d2
2 changed files with 11 additions and 6 deletions
|
|
@ -161,6 +161,14 @@ impl Widget for Input {
|
|||
(_, _) => UNHANDLED,
|
||||
}
|
||||
}
|
||||
|
||||
fn focus(&mut self, context: &mut crate::context::Context<'_, '_>) {
|
||||
context.set_ime_allowed(true);
|
||||
}
|
||||
|
||||
fn blur(&mut self, context: &mut crate::context::Context<'_, '_>) {
|
||||
context.set_ime_allowed(false);
|
||||
}
|
||||
}
|
||||
|
||||
struct LiveEditor {
|
||||
|
|
|
|||
|
|
@ -269,12 +269,9 @@ where
|
|||
|
||||
// fn modifiers_changed(&mut self, window: kludgine::app::Window<'_, ()>) {}
|
||||
|
||||
// fn ime(
|
||||
// &mut self,
|
||||
// window: kludgine::app::Window<'_, ()>,
|
||||
// ime: kludgine::app::winit::event::Ime,
|
||||
// ) {
|
||||
// }
|
||||
fn ime(&mut self, mut window: RunningWindow<'_>, ime: kludgine::app::winit::event::Ime) {
|
||||
dbg!(ime);
|
||||
}
|
||||
|
||||
fn cursor_moved(
|
||||
&mut self,
|
||||
|
|
|
|||
Loading…
Reference in a new issue