flutter / flutter/flutter

Use actions/shortcuts instead of Focus.onKeyEvent to dismiss RawTooltip on esc keypress in WidgetsApp

Open
#180,319 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.