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.
Specification being incubated in a Community Group
Status in Chromium
Enabled by default
Consensus & Standardization
Search tagsVirtualKeyboard, VK APIs,
Last updated on 2021-10-16