example: fix toggling IME
This commit is contained in:
parent
abed32eb80
commit
0ccb8a9f87
1 changed files with 3 additions and 2 deletions
|
|
@ -716,8 +716,9 @@ impl WindowState {
|
||||||
.cursor_position
|
.cursor_position
|
||||||
.map(Into::into)
|
.map(Into::into)
|
||||||
.unwrap_or(LogicalPosition { x: 0, y: 0 }.into());
|
.unwrap_or(LogicalPosition { x: 0, y: 0 }.into());
|
||||||
let request_data =
|
let request_data = ImeRequestData::default()
|
||||||
ImeRequestData::default().with_cursor_area(cursor_pos, IME_CURSOR_SIZE.into());
|
.with_purpose(ImePurpose::Normal)
|
||||||
|
.with_cursor_area(cursor_pos, IME_CURSOR_SIZE.into());
|
||||||
let enable_request = ImeEnableRequest::new(
|
let enable_request = ImeEnableRequest::new(
|
||||||
ImeCapabilities::new().with_purpose().with_cursor_area(),
|
ImeCapabilities::new().with_purpose().with_cursor_area(),
|
||||||
request_data,
|
request_data,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue