WebAPI/KeboardIME: Difference between revisions

Jump to navigation Jump to search
m
Line 54: Line 54:
     // Input Method Manager contain a few global methods expose to apps
     // Input Method Manager contain a few global methods expose to apps
     readonly attribute InputMethodManager mgmt;
     readonly attribute InputMethodManager mgmt;
 
     // It informs the IME that text input has started in an input field. If the IME is activated, this event is sent when focus enters a new input field. Otherwise this event is sent when user switches to the IME and activates it.
     // It informs the IME that text input has started in an input field. If the IME is activated, this event is sent when focus enters a new input field. Otherwise this event is sent when user switches to the IME and activates it.
     attribute EventHandler onstart;
     attribute EventHandler onstart;
Line 63: Line 63:
     // Fired when the input context changes, include changes from and to null.
     // Fired when the input context changes, include changes from and to null.
     attribute EventHandler oncontextchange;
     attribute EventHandler oncontextchange;
 
     // An "input context" is mapped to a text field that the app is allow to mutate.
     // An "input context" is mapped to a text field that the app is allow to mutate.
     // this attribute should be null when there is no text field currently focused.
     // this attribute should be null when there is no text field currently focused.
Line 160: Line 160:
     // The tag name of input field, which is enum of "input", "textarea", or "contenteditable"
     // The tag name of input field, which is enum of "input", "textarea", or "contenteditable"
     DOMString name;
     DOMString name;
 
     // The type of the input field, which is enum of text, number, password, url, search and email.
     // The type of the input field, which is enum of text, number, password, url, search and email.
     DOMString type;
     DOMString type;
 
     /*
     /*
     * The input mode string.
     * The input mode string.
Line 176: Line 176:
     */
     */
     DOMString inputmode;
     DOMString inputmode;
 
     /*
     /*
     * The primary language for the input field.
     * The primary language for the input field.
Confirmed users
58

edits

Navigation menu