Skip to content

Commit

Permalink
feat: support current editting value (#196)
Browse files Browse the repository at this point in the history
* feat: clear selection when losing focus

* feat: support currect editing value in delta_input_service
  • Loading branch information
LucasXu0 authored Jun 14, 2023
1 parent 9bc82c0 commit 23bc6d2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class DeltaTextInputService extends TextInputService with DeltaTextInputClient {
AutofillScope? get currentAutofillScope => throw UnimplementedError();

@override
TextEditingValue? get currentTextEditingValue => throw UnimplementedError();
TextEditingValue? currentTextEditingValue;

TextInputConnection? _textInputConnection;

Expand Down Expand Up @@ -100,6 +100,7 @@ class DeltaTextInputService extends TextInputService with DeltaTextInputClient {
_textInputConnection!
..setEditingState(formattedValue)
..show();
currentTextEditingValue = formattedValue;

Log.input.debug(
'attach text editing value: $textEditingValue',
Expand Down

0 comments on commit 23bc6d2

Please sign in to comment.