Results for “KeyEvent”
Full-text search across Boring Doc explanations, official documentation pages, the Flutter API index and every indexed version change.
Guides
API reference
- KeyEventclass
Defines the interface for keyboard key events. services.KeyEvent KeyEvent Key Event class services
- KeyEventManagerclass
that processes key messages from the platform and dispatches converted messages accordingly. services.KeyEventManager KeyEventManager Key Event Manager class services
- KeyEvent.newconstructor
Create a const KeyEvent by providing each field. services.KeyEvent.KeyEvent.new KeyEvent new Key Event.new constructor services
- KeyEventManager.newconstructor
Create an instance. services.KeyEventManager.KeyEventManager.new KeyEventManager new Key Event Manager.new constructor services
- services.KeyMessageHandlertypedef
signature for KeyEventManager.keyMessageHandler. services.KeyMessageHandler KeyMessageHandler Key Message Handler typedef services
- widgets.KeyEventResultenum
handle a key event handled by a FocusOnKeyCallback or FocusOnKeyEventCallback. widgets.KeyEventResult KeyEventResult Key Event Result enum widgets
- services.KeyEventCallbacktypedef
callback to decide whether the entire framework handles a key event. services.KeyEventCallback KeyEventCallback Key Event Callback typedef services
Version changes
- Migrate RawKeyEvent/RawKeyboard system to KeyEvent/HardwareKeyboard system3.19.0breaking
longer supported. One exception is that [`RawKeyEventDataAndroid.eventSource`][] information is accessible now as [`KeyEvent.deviceType`][] in a more platform independent form. #### Migrating `isKeyPressed` and related functions If the legacy code
- Migrate ShortcutActivator and ShortcutManager to KeyEvent system3.16.0breaking
previous section. ### Migrating your APIs that use `ShortcutActivator` or its subclasses. Pass a `KeyEvent` instead of a `RawKeyEvent` to `ShortcutActivator.accepts`. This may mean switching where
- Replace curly braces with lambdas in `KeyEventChannelTest`3.38.0platform
Replace curly braces with lambdas in `KeyEventChannelTest` (Android, by @AbdeMohlbi). KeyEventChannelTest