Skip to content

Keyboard shortcuts and actions should be supported. #31946

@gspencergoog

Description

@gspencergoog

Currently, RawKeyboardListener can listen to keyboard events, and trigger callbacks based on those events. However, on a hardware keyboard it isn't very easy to support standard keyboard shortcuts like TAB, ENTER, CTRL-Z, etc., since each control needs to be wrapped with a listener.

Flutter needs to have a shortcut mechanism which can map keys to actions, and then dispatch actions to focused widgets in order to execute them.

Metadata

Metadata

Assignees

Labels

a: desktopRunning on desktopa: text inputEntering text in a text field or keyboard related problemsc: new featureNothing broken; request for a new capabilityframeworkflutter/packages/flutter repository. See also f: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions