Report cursor size to InputMethod
Co-authored-by: dcz-self <dcz-self@users.noreply.github.com>
This commit is contained in:
parent
e163333161
commit
d22da7d261
5 changed files with 31 additions and 20 deletions
|
|
@ -785,10 +785,10 @@ where
|
|||
);
|
||||
|
||||
if !had_input_method
|
||||
&& let InputMethod::Enabled { position, .. } =
|
||||
&& let InputMethod::Enabled { cursor, .. } =
|
||||
shell.input_method_mut()
|
||||
{
|
||||
*position = *position - translation;
|
||||
*cursor = *cursor - translation;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue