Confirmed users
58
edits
m (→Proposed API) |
m (→Proposed API) |
||
Line 374: | Line 374: | ||
* to compose non-ASCII characters from keystrokes, e.g. Pinyin or Hiragana. The composing text is the | * to compose non-ASCII characters from keystrokes, e.g. Pinyin or Hiragana. The composing text is the | ||
* intermediate text to help input complex character and is not committed to current input field. Therefore | * intermediate text to help input complex character and is not committed to current input field. Therefore | ||
* if any text operation other than composition is performed, the composition will | * if any text operation other than composition is performed, the composition will automatically | ||
* | * end. Same apply when the inputContext is lost during a unfinished composition session. | ||
* | * | ||
* To finish composition and commit text to current input field, an IME should call |endComposition|. | * To finish composition and commit text to current input field, an IME should call |endComposition|. | ||
Line 389: | Line 388: | ||
* committed. | * committed. | ||
* | * | ||
* Note that composition always ends automatically | * Note that composition always ends automatically if the composition does not | ||
* explicitly end by calling |endComposition|, but is interrupted by |sendKey|, |setSelectionRange|, | * explicitly end by calling |endComposition|, but is interrupted by |sendKey|, |setSelectionRange|, | ||
* |replaceSurroundingText|, |deleteSurroundingText|, user moving the cursor, changing the focus, etc. | * |replaceSurroundingText|, |deleteSurroundingText|, user moving the cursor, changing the focus, etc. |