Repository navigation
Conversation
|
Gold has detected about 3 new digest(s) on patchset 14. |
|
@gspencergoog Here's my yet unsuccessful FocusTrap PR that I mentioned to you. Basically what I tried to do here was remove the FocusTrapArea (in TextField) and the FocusTrap (routes.dart) and replace it with a GestureDetector and a simple Focus widget. It alllmost worked, but the gesture detector was stealing drag events from the event arena (such as drag to go back, etc.), causing a bunch of test failures. I think your approach with a custom gesture listener should work. This issue #86972 has lots of discussion about this problem. Here are my reasons for needing this to allow buttons that don't unfocus a text input. |
|
Closing in favor of #107262 |
A few months back, I made an attempt at simplifying FocusTrap (#90240) in order to 1. match the native behavior that tapping outside textfields doesn't remove focus, except on web, and 2. allow buttons that don't remove the focus from text input fields. Here I'm reviving that attempt and seeing if it is feasible or not. Work in progress.
Behavior with this PR:
Related
Fixes #86972
Fixes #92541
Unblocks #76072 (virtual keyboards, as well as rich text editor bold buttons, etc.)
Original FocusTrap PR: #82575
Follow up that fixed clicks on prefix/suffix: #86041