Skip to content

Commit

Permalink
fix: remove unused check in non_delta_input_service (#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasXu0 authored Sep 11, 2023
1 parent 19f999f commit 4a92c88
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ class NonDeltaTextInputService extends TextInputService with TextInputClient {

TextInputConnection? _textInputConnection;

int _skipNextUpdate = 0;

final String debounceKey = 'updateEditingValue';

@override
Expand Down Expand Up @@ -76,7 +74,6 @@ class NonDeltaTextInputService extends TextInputService with TextInputClient {

Debounce.cancel(debounceKey);

_skipNextUpdate++;
_textInputConnection!
..setEditingState(formattedValue)
..show();
Expand All @@ -90,9 +87,6 @@ class NonDeltaTextInputService extends TextInputService with TextInputClient {

@override
void updateEditingValue(TextEditingValue value) {
if (_skipNextUpdate-- > 0) {
return;
}
if (currentTextEditingValue == value) {
return;
}
Expand Down

0 comments on commit 4a92c88

Please sign in to comment.