• 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
..
_flutter_web_build_script Loading commit data...
flutter Loading commit data...
flutter_driver Loading commit data...
flutter_goldens Loading commit data...
flutter_goldens_client Loading commit data...
flutter_localizations Loading commit data...
flutter_test Loading commit data...
flutter_tools Loading commit data...
flutter_web_plugins Loading commit data...
fuchsia_remote_debug_protocol Loading commit data...
analysis_options.yaml Loading commit data...