From 0ccb8a9f87fab3b085d1490bccb63c3e28b2a191 Mon Sep 17 00:00:00 2001 From: DorotaC <43449960+dcz-self@users.noreply.github.com> Date: Mon, 30 Jun 2025 04:51:46 +0200 Subject: [PATCH] example: fix toggling IME --- examples/application.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/application.rs b/examples/application.rs index 3b181fff..75d936e5 100644 --- a/examples/application.rs +++ b/examples/application.rs @@ -716,8 +716,9 @@ impl WindowState { .cursor_position .map(Into::into) .unwrap_or(LogicalPosition { x: 0, y: 0 }.into()); - let request_data = - ImeRequestData::default().with_cursor_area(cursor_pos, IME_CURSOR_SIZE.into()); + let request_data = ImeRequestData::default() + .with_purpose(ImePurpose::Normal) + .with_cursor_area(cursor_pos, IME_CURSOR_SIZE.into()); let enable_request = ImeEnableRequest::new( ImeCapabilities::new().with_purpose().with_cursor_area(), request_data,