File tree 2 files changed +607
-0
lines changed
2 files changed +607
-0
lines changed Original file line number Diff line number Diff line change @@ -4712,6 +4712,24 @@ class _TextEditingHistoryState extends State<_TextEditingHistory> {
4712
4712
return ;
4713
4713
}
4714
4714
4715
+ switch (defaultTargetPlatform) {
4716
+ case TargetPlatform .iOS:
4717
+ case TargetPlatform .macOS:
4718
+ case TargetPlatform .fuchsia:
4719
+ case TargetPlatform .linux:
4720
+ case TargetPlatform .windows:
4721
+ // Composing text is not counted in history coalescing.
4722
+ if (! widget.controller.value.composing.isCollapsed) {
4723
+ return ;
4724
+ }
4725
+ break ;
4726
+ case TargetPlatform .android:
4727
+ // Gboard on Android puts non-CJK words in composing regions. Coalesce
4728
+ // composing text in order to allow the saving of partial words in that
4729
+ // case.
4730
+ break ;
4731
+ }
4732
+
4715
4733
_throttleTimer = _throttledPush (widget.controller.value);
4716
4734
}
4717
4735
You can’t perform that action at this time.
0 commit comments