This page is part of the documentation for the Chrome Apps platform, which was deprecated in 2020. It remains supported for Enterprise and Education customers on ChromeOS until at least Jan 2025. Learn more about migrating your app.

chrome.virtualKeyboard

Description

The chrome.virtualKeyboard API is a kiosk only API used to configure virtual keyboard layout and behavior in kiosk sessions.

Permissions

virtualKeyboard

Availability

Chrome 58+ ChromeOS only

Types

FeatureRestrictions

Properties

  • autoCompleteEnabled

    boolean optional

    Whether virtual keyboards can provide auto-complete.

  • autoCorrectEnabled

    boolean optional

    Whether virtual keyboards can provide auto-correct.

  • handwritingEnabled

    boolean optional

    Whether virtual keyboards can provide input via handwriting recognition.

  • spellCheckEnabled

    boolean optional

    Whether virtual keyboards can provide spell-check.

  • voiceInputEnabled

    boolean optional

    Whether virtual keyboards can provide voice input.

Methods

restrictFeatures()

Promise
chrome.virtualKeyboard.restrictFeatures(
restrictions: FeatureRestrictions ,
callback?: function,
)
: Promise<FeatureRestrictions>

Sets restrictions on features provided by the virtual keyboard.

Parameters

Returns

  • Chrome 96+

    Promises are only supported for Manifest V3 and later, other platforms need to use callbacks.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年08月07日 UTC.