Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@gspencergoog
Copy link
Contributor

Description

This disables the delete handling on the engine side, since now that we send events to the framework first, the framework is handling it.

Related Issues

Tests

  • Removed engine tests for "delete backwards" because the framework is testing those.

Breaking Change

  • No, no existing tests failed, so this is not a breaking change.

@gspencergoog gspencergoog changed the title Fix double delete Fix double delete on backspace on Android Nov 20, 2020
@yangyxd
Copy link

yangyxd commented Nov 20, 2020

Waiting for merge code

@gspencergoog gspencergoog requested review from goderbauer and removed request for justinmc November 20, 2020 17:04
Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

assertNull(testImm.lastCursorAnchorInfo);
}

@Test
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add a test to verify that KeyEvent.KEYCODE_DEL doesn't do anything?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I'll add that. Should be a simple matter of reversing the expects in the original test.

@gspencergoog gspencergoog added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Nov 20, 2020
@fluttergithubbot fluttergithubbot merged commit b4d4e30 into flutter:master Nov 20, 2020
pcsosinski pushed a commit to pcsosinski/engine that referenced this pull request Nov 23, 2020
pcsosinski pushed a commit that referenced this pull request Nov 23, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 24, 2020
chaselatta pushed a commit to chaselatta/engine that referenced this pull request Nov 30, 2020
gspencergoog added a commit to gspencergoog/engine that referenced this pull request Dec 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes platform-android waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TextInputType.number deletes 2 chars at once when hitting delete

5 participants