Changes

Jump to: navigation, search

WebAPI/KeboardIME

65 bytes added, 02:47, 23 July 2013
m
Proposed API
// Ask the OS to show a list of available IMEs for users to switch from.
// OS should ignore this request if the app is currently not the active one.
void <strike>showInputMethodPicker</strike> showAll();
// Ask the OS to switch away from the current active Keyboard app.
// OS should ignore this request if the app is currently not the active one.
void <strike>switchToNextInputMethod</strike> next();
// To know if the OS supports IME switching or not.
// This method belong to |mgmt| because we would like to allow Keyboard to access to
// this method w/o a input context.
void <strike>removeFocus</strike> hide();
};
/*
* Get the whole text content of the input field. (|getSurroundingText()| is removed in favor of this method with params)
*/
Promise<DOMString> getText([optional] offset, [optional] length);
* @param length The length of text to replace. Defaults to 0.
*/
Promise<boolean> <strike>commitText</strike> replaceSurroundingText(DOMString text, [optional] long offset, [optional] long length);
/*
Confirm
58
edits

Navigation menu