stuartmorgan
1cad96a63e
Handle surrogate pairs in RenderEditable ( #55246 )
...
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
2020-04-22 12:21:03 -07:00
..
2020-01-07 16:32:04 +01:00
2020-02-11 20:58:27 +01:00
2019-12-16 15:03:02 -08:00
2020-01-27 14:36:02 -08:00
2020-02-11 20:58:27 +01:00
2019-11-27 15:04:02 -08:00
2019-11-27 15:04:02 -08:00
2020-01-27 14:36:02 -08:00
2019-11-27 15:04:02 -08:00
2019-11-27 15:04:02 -08:00
2020-04-16 10:05:02 -07:00
2020-04-22 12:21:03 -07:00
2019-11-27 15:04:02 -08:00
2019-11-27 15:04:02 -08:00
2020-01-27 14:36:02 -08:00
2019-11-27 15:04:02 -08:00
2019-11-27 15:04:02 -08:00
2019-11-27 15:04:02 -08:00
2020-02-11 20:58:27 +01:00
2020-01-30 09:33:01 -08:00
2019-11-27 15:04:02 -08:00
2020-03-18 15:11:48 -07:00
2020-01-07 16:32:04 +01:00
2020-04-08 09:12:03 -07:00
2019-11-27 15:04:02 -08:00
2019-12-16 15:03:02 -08:00
2020-01-27 14:36:02 -08:00
2019-11-27 15:04:02 -08:00
2019-11-27 15:04:02 -08:00
2019-11-27 15:04:02 -08:00
2019-11-27 15:04:02 -08:00
2020-02-11 20:58:27 +01:00
2019-12-16 15:03:02 -08:00
2019-11-27 15:04:02 -08:00
2020-04-20 14:46:38 -07:00
2019-11-27 15:04:02 -08:00
2020-01-07 11:58:01 -08:00
2019-12-16 15:03:02 -08:00
2019-11-27 15:04:02 -08:00
2019-11-27 15:04:02 -08:00
2020-04-08 09:12:03 -07:00
2019-11-27 15:04:02 -08:00
2020-01-27 14:36:02 -08:00
2019-11-27 15:04:02 -08:00
2019-12-16 15:03:02 -08:00
2019-11-27 15:04:02 -08:00
2019-12-16 15:03:02 -08:00
2019-12-16 15:03:02 -08:00
2019-11-27 15:04:02 -08:00
2020-03-25 11:06:02 -07:00
2020-01-07 16:32:04 +01:00
2019-12-16 15:03:02 -08:00
2020-03-02 09:54:02 -08:00
2019-12-16 15:03:02 -08:00
2019-11-27 15:04:02 -08:00
2020-01-07 16:32:04 +01:00
2019-11-27 15:04:02 -08:00
2019-11-27 15:04:02 -08:00
2019-12-13 14:36:53 -08:00
2020-01-27 14:36:02 -08:00
2019-11-27 15:04:02 -08:00