Welcome What's new in Chrome extensions API reference Samples
Welcome What's new in 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"]
}]
// ...
}

Published on Improve article

This site uses cookies to deliver and enhance the quality of its services and to analyze traffic. If you agree, cookies are also used to serve advertising and to personalize the content and advertisements that you see. Learn more about our use of cookies.