Confirmed users
58
edits
m (InputContext iherits EventTarget) |
m (→Proposed API) |
||
Line 72: | Line 72: | ||
// Ask the OS to show a list of available IMEs for users to switch from. | // 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. | // OS should ignore this request if the app is currently not the active one. | ||
void showAll(); | void <strike>showInputMethodPicker</strike> showAll(); | ||
// Ask the OS to switch away from the current active Keyboard app. | // 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. | // OS should ignore this request if the app is currently not the active one. | ||
void next(); | void <strike>switchToNextInputMethod</strike> next(); | ||
// To know if the OS supports IME switching or not. | // To know if the OS supports IME switching or not. | ||
Line 89: | Line 89: | ||
// This method belong to |mgmt| because we would like to allow Keyboard to access to | // This method belong to |mgmt| because we would like to allow Keyboard to access to | ||
// this method w/o a input context. | // this method w/o a input context. | ||
void hide(); | void <strike>removeFocus</strike> hide(); | ||
}; | }; | ||
Line 125: | Line 125: | ||
/* | /* | ||
* Get the whole text content of the input field. | * Get the whole text content of the input field. | ||
*/ | */ | ||
Promise<DOMString> getText([optional] offset, [optional] length); | Promise<DOMString> getText([optional] offset, [optional] length); | ||
Line 166: | Line 166: | ||
* @param length The length of text to replace. Defaults to 0. | * @param length The length of text to replace. Defaults to 0. | ||
*/ | */ | ||
Promise<boolean> replaceSurroundingText(DOMString text, [optional] long offset, [optional] long length); | Promise<boolean> <strike>commitText</strike> replaceSurroundingText(DOMString text, [optional] long offset, [optional] long length); | ||
/* | /* |