欢迎 What's new in Chrome extensions Get help with Chrome extensions API reference Samples
欢迎 What's new in Chrome extensions Get help with Chrome extensions API reference Samples

Manifest - input_components

Published on

An optional Manifest key enabling the use of the input.ime API (Input Method Editor) for use with ChromeOS. This allows your extension to handle keystrokes, set the composition, and open assistive windows. Developers must also declare the "input" permission in the extension's "permissions" array. The key accepts an array of objects: name, id, language, layouts, input_view, and options_page (Refer to the table below).

PropertyTypeDescription
namestringRequired name of the input component object.
idstringOptional component object id.
languagestring (or array of strings)Optional specified language or list of applicable languages. Examples: "en", ["en", "pt"]
layoutsstring (or array of strings)Optional list of input methods. Note that ChromeOS only supports one layout per input method. If multiple layouts are specified, selection order is undefined. Extensions are therefore strongly encouraged to only specify one layout per input method. For keyboard layouts, a xkb: prefix indicates that this is a keyboard layout extension.
Example: ["us::eng"]
input_viewstringOptional string specifying an extension resource.
options_pagestringOptional string specifying an extension resource. If not provided, the default extension's options page will be used.
{
// ...
"input_components": [{
"name": "ToUpperIME",
"id": "ToUpperIME",
"language": "en",
"layouts": ["us::eng"]
}]
// ...
}

Updated on Improve article

We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.