Skip to content

Commit beb8a7e

Browse files
Update editing state in InputConnectionAdaptor.setSelection (#17652)
The BaseInputConnection superclass does not call endBatchEdit in setSelection and therefore does not implicitly cause InputConnectionAdaptor to send a state update. Some input modes such as numeric keypads will not function without these updates.
1 parent e663893 commit beb8a7e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎shell/platform/android/io/flutter/plugin/editing/InputConnectionAdaptor.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ private boolean isSamsung() {
287287
public boolean setSelection(int start, int end) {
288288
boolean result = super.setSelection(start, end);
289289
markDirty();
290+
updateEditingState();
290291
return result;
291292
}
292293

0 commit comments

Comments
 (0)