Virtual keyboard
Limited availability
The navigator.virtualKeyboard
API inspects and controls on-screen virtual keyboards. You can use it to programmatically hide or show a virtual keyboard or respond to the keyboard disappearing or appearing.
To learn more, see
HTMLElement: virtualKeyboardPolicy property,
Navigator: virtualKeyboard property,
VirtualKeyboard,
VirtualKeyboard: boundingRect property,
VirtualKeyboard: geometrychange event,
VirtualKeyboard: hide() method,
VirtualKeyboard: overlaysContent property,
VirtualKeyboard: show() method,
virtualkeyboardpolicy at MDN.
Compatibility
- Chrome 94 Released on 2021-09-21
- Chrome Android 94 Released on 2021-09-21
- Edge 94 Released on 2021-09-24
- Firefox ❌ See bugzil.la/1730568
- Firefox for Android ❌ See bugzil.la/1730568
- Safari ❌ See webkit.org/b/230225
- Safari on iOS ❌ See webkit.org/b/230225
Specifications
- VirtualKeyboard API, from Web Editing Working Group (W3C).