VirtualKeyboardOptions Class
The host hooks of the VirtualKeyboard API (https://w3c.github.io/virtual-keyboard/, BrowsingContextOptions.VirtualKeyboard).
public sealed class VirtualKeyboardOptionsConstructors
| Name | Description |
|---|---|
| VirtualKeyboardOptions() |
VirtualKeyboardOptions()
public VirtualKeyboardOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| Hide | Gets or sets the callback that asks the system to hide the on-screen keyboard (navigator.virtualKeyboard.hide()). The library checks the document (sticky activation, a focused element whose virtualkeyboardpolicy is manual) before calling it. The callback is invoked on the thread of the event loop, and must not block it. The default is null: nothing is hidden. The first argument is the context of the window (see CallbackContext): its CallbackContext.Window is never null. |
| Provider | Gets or sets the on-screen keyboard of the device: its VirtualKeyboardProvider.BoundingRect is the boundingRect of the documents, and the keyboard-inset-* environment variables while overlaysContent is true. A provider can be shared by several browsing contexts. The default is null: the keyboard is never shown. |
| Show | Gets or sets the callback that asks the system to show the on-screen keyboard (navigator.virtualKeyboard.show()). The library checks the document (sticky activation, a focused form control or editing host whose virtualkeyboardpolicy is manual and whose inputmode is not none) before calling it. Once the keyboard is shown, the host reports its rectangle with VirtualKeyboardProvider.BoundingRect. The callback is invoked on the thread of the event loop, and must not block it. The default is null: nothing is shown. The first argument is the context of the window (see CallbackContext): its CallbackContext.Window is never null. |
Gets or sets the callback that asks the system to hide the on-screen keyboard (navigator.virtualKeyboard.hide()). The library checks the document (sticky activation, a focused element whose virtualkeyboardpolicy is manual) before calling it. The callback is invoked on the thread of the event loop, and must not block it. The default is null: nothing is hidden. The first argument is the context of the window (see CallbackContext): its CallbackContext.Window is never null.
public Action<CallbackContext>? Hide { get; init; }Property value
Provider
VirtualKeyboard.csGets or sets the on-screen keyboard of the device: its VirtualKeyboardProvider.BoundingRect is the boundingRect of the documents, and the keyboard-inset-* environment variables while overlaysContent is true. A provider can be shared by several browsing contexts. The default is null: the keyboard is never shown.
public VirtualKeyboardProvider? Provider { get; init; }Property value
Gets or sets the callback that asks the system to show the on-screen keyboard (navigator.virtualKeyboard.show()). The library checks the document (sticky activation, a focused form control or editing host whose virtualkeyboardpolicy is manual and whose inputmode is not none) before calling it. Once the keyboard is shown, the host reports its rectangle with VirtualKeyboardProvider.BoundingRect. The callback is invoked on the thread of the event loop, and must not block it. The default is null: nothing is shown. The first argument is the context of the window (see CallbackContext): its CallbackContext.Window is never null.
public Action<CallbackContext>? Show { get; init; }