forked from firka/flutter
Update editing state in InputConnectionAdaptor.setSelection (flutter/engine#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.
This commit is contained in:
@@ -287,6 +287,7 @@ class InputConnectionAdaptor extends BaseInputConnection {
|
||||
public boolean setSelection(int start, int end) {
|
||||
boolean result = super.setSelection(start, end);
|
||||
markDirty();
|
||||
updateEditingState();
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user