mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Improve IME messaging to embedder with insertion point index and multiline flag.
This commit is contained in:
parent
0539043e35
commit
b8a74e89cf
8 changed files with 57 additions and 15 deletions
|
@ -197,7 +197,10 @@ pub enum EmbedderMsg {
|
|||
/// Open interface to request permission specified by prompt.
|
||||
PromptPermission(PermissionPrompt, IpcSender<PermissionRequest>),
|
||||
/// Request to present an IME to the user when an editable element is focused.
|
||||
ShowIME(InputMethodType, Option<String>, DeviceIntRect),
|
||||
/// If the input is text, the second parameter defines the pre-existing string
|
||||
/// text content and the zero-based index into the string locating the insertion point.
|
||||
/// bool is true for multi-line and false otherwise.
|
||||
ShowIME(InputMethodType, Option<(String, i32)>, bool, DeviceIntRect),
|
||||
/// Request to hide the IME when the editable element is blurred.
|
||||
HideIME,
|
||||
/// Servo has shut down
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue