WebAPI/KeboardIME: Difference between revisions

m
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 be automatically
       * if any text operation other than composition is performed, the composition will automatically
       * canceled and the composing text will be cleared. Same apply when the inputContext is lost during a
       * end. Same apply when the inputContext is lost during a unfinished composition session.
      * 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 with nothing to commit if the composition does not
       * 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.
Confirmed users
58

edits