mirror of
https://github.com/danbulant/cushy
synced 2026-06-09 17:40:54 +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,
|
(_, _) => 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 {
|
struct LiveEditor {
|
||||||
|
|
|
||||||
|
|
@ -269,12 +269,9 @@ where
|
||||||
|
|
||||||
// fn modifiers_changed(&mut self, window: kludgine::app::Window<'_, ()>) {}
|
// fn modifiers_changed(&mut self, window: kludgine::app::Window<'_, ()>) {}
|
||||||
|
|
||||||
// fn ime(
|
fn ime(&mut self, mut window: RunningWindow<'_>, ime: kludgine::app::winit::event::Ime) {
|
||||||
// &mut self,
|
dbg!(ime);
|
||||||
// window: kludgine::app::Window<'_, ()>,
|
}
|
||||||
// ime: kludgine::app::winit::event::Ime,
|
|
||||||
// ) {
|
|
||||||
// }
|
|
||||||
|
|
||||||
fn cursor_moved(
|
fn cursor_moved(
|
||||||
&mut self,
|
&mut self,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue