Use actions/shortcuts instead of Focus.onKeyEvent to dismiss RawTooltip on esc keypress in WidgetsApp
Open
c: new feature
c: proposal
f: focus
framework
P2
team-framework
triaged-framework
- Dominant language
- Dart
- Stars
- 179k
- Forks
- 31.1k
- PR merge metrics
- PR metrics pending
Description
### Use case
See [comment thread](https://github.com/flutter/flutter/pull/177678#discussion_r2604470422)
Currently, MaterialApp uses Focus.onKeyEvent to dismiss Tooltips on esc keypress. After https://github.com/flutter/flutter/pull/177678 lands, this logic is moved to WidgetsApp to dismiss RawTooltips on esc keypress.
### Proposal
Use DismissIntent and WidgetsApp.defaultActions instead of Focus.onKeyEvent to handle this.
Contributor guide
Assessment
This issue has not been assessed yet.