mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
libservo: Add allow_virtual_keyboard flag for InputMethodControl (#42467)
Following the convention of other major UAs of gating the virtual keyboard by certain user activation, adding a flags to let the embedder knows about the user activation. This would be used to determine whether the virtual keyboard needs to be shown or not in android and ohos. Testing: Manual testing. --------- Signed-off-by: Jo Steven Novaryo <steven.novaryo@gmail.com> Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
@@ -187,6 +187,8 @@ impl HTMLTextAreaElement {
|
||||
text: self.Value().to_string(),
|
||||
insertion_point: self.GetSelectionEnd(),
|
||||
multiline: false,
|
||||
// We follow chromium's heuristic to show the virtual keyboard only if user had interacted before.
|
||||
allow_virtual_keyboard: self.owner_window().has_sticky_activation(),
|
||||
}),
|
||||
None,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user