• Chris Bracken's avatar
    Preserve composing range if possible on sel change (#67197) · b851f997
    Chris Bracken authored
    When setting the TextSelection in a TextEditingController, preserve the
    composing range so long as the new selection is:
    
      * a collapsed selection; in other words, a cursor rather than a
        selection with an extent. A selection with an extent is not
        permitted when composing.
      * within the composing region. Moving the cursor outside the composing
        region ends composing mode.
    
    When using physical keyboards for input with an IME, users expect to be
    able to navigate using the cursor within the composing region with the
    arrow keys in order to edit text in the composing range.
    
    As an example, a user might erroneously enter the composing text
    にほんごにゅうろく in kana, then hit the left arrow, followed by
    backspace in order to delete the ろ, then input りょ in order to
    generate the correct composing text にほんごにゅうりょく, before then
    hitting the conversion key to convert to the kanji text 日本語入力 and
    commit.
    b851f997
Name
Last commit
Last update
.github Loading commit data...
bin Loading commit data...
dev Loading commit data...
examples Loading commit data...
packages Loading commit data...
.cirrus.yml Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CODEOWNERS Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
PATENT_GRANT Loading commit data...
README.md Loading commit data...
analysis_options.yaml Loading commit data...
dartdoc_options.yaml Loading commit data...
flutter_console.bat Loading commit data...