Repository navigation
Implement delayed key event synthesis support for framework - #59358
Conversation
|
What would happen if multiple Flutter Views are on top of each other? I assume this would lead to n^2 key events in rapid succession, but its not clear if there would be any notable side effects of that. |
There was a problem hiding this comment.
nit: maybe mentioned what "handled" (or returning true) means, e.g. that the event will stop propagating and nobody else will see them?
There was a problem hiding this comment.
Should we assert here that if the keyEventHandler was provided it returned true/false (and not null)? Assuming that returning null from keyEventHandler is illegal.
There was a problem hiding this comment.
If null is illegal, let's document that on RawKeyEventHandler as well.
There was a problem hiding this comment.
maybe link to [addListener] as well from here and say how that's different then receiving the key events from here.
f725ee0 to
0719bce
Compare
|
Google testing passed! |
0719bce to
2571236
Compare
|
Started Google testing for this PR |
|
Google testing passed! |
) This implements the design in flutter.dev/go/handling-synchronous-keyboard-events for Android. I started with Android, but this will be used for all platforms as we add them. The related framework PR is: flutter/flutter#59358 (which has already landed)
…tter-team-archive/engine#19024) This implements the design in flutter.dev/go/handling-synchronous-keyboard-events for Android. I started with Android, but this will be used for all platforms as we add them. The related framework PR is: flutter/flutter#59358 (which has already landed)
Description
This implements the design in https://flutter.dev/go/handling-synchronous-keyboard-events for Android.
I started with Android, but this will be used for all platforms as we add them.
The related engine PR is: flutter-team-archive/engine#19024
Related Issues
Tests
Breaking Change