The virtual keyboard is the on-screen keyboard used for input in scenarios where a hardware keyboard may not be available. The VirtualKeyboard interface has APIs to provide authors with more control over when the virtual keyboard is shown or hidden. It also fires events with the size of the virtual keyboard when it occludes content in the page.
Unlike a hardware keyboard, VK can adapt its shape to optimize for the expected type of input. Authors have control over the displayed shape of the VK through the inputmode attribute, but have limited control over when the VK is shown or hidden.
Status in Chromium
No active development (tracking bug) in:
- Chrome for desktop release 94
- Chrome for Android release 94
Consensus & Standardization
Search tagsVirtualKeyboard, VK APIs,
Last updated on 2021-07-23