Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parley: add IME support to text editor example #111

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
3 changes: 2 additions & 1 deletion examples/vello_editor/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ impl<'s> ApplicationHandler for SimpleVelloApp<'s> {
let window = cached_window
.take()
.unwrap_or_else(|| create_winit_window(event_loop));
window.set_ime_allowed(true);

// Create a vello Surface
let size = window.inner_size();
Expand Down Expand Up @@ -107,7 +108,7 @@ impl<'s> ApplicationHandler for SimpleVelloApp<'s> {
_ => return,
};

self.editor.handle_event(&event);
self.editor.handle_event(&render_state.window, &event);
render_state.window.request_redraw();
// render_state
// .window
Expand Down
Loading