• stuartmorgan's avatar
    Handle surrogate pairs in RenderEditable (#55246) · 1cad96a6
    stuartmorgan authored
    The arrow key and delete handling in RenderEditable was using single
    index values, which made it possible to move the cursor into the middle
    of a surrogate pair (allowing things like adding text at that insertion
    point), or to delete half of a surrogate pair. Since unpaired surrogate
    pairs aren't valid UTF-16, doing so would cause assertions in the text
    field.
    
    This makes the arrow key and delete key handling surrogate-aware
    (although not grapheme-cluster-aware, which is a larger fix that is out
    of scope here).
    
    Part of #55014
    1cad96a6
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...