Skip to main content

ShortcutManagerKeypress

Trait ShortcutManagerKeypress 

Source
pub trait ShortcutManagerKeypress: ShortcutManagerBase {
    // Provided method
    fn handle_keypress(
        self: Handle<Self>,
        app: &mut App,
        context: BuildContext,
        event: &KeyEvent,
    ) -> KeyEventResult { ... }
}
Expand description

Flutter’s ShortcutManager.handleKeypress body that an override calls through super.

A trait default cannot call super, and a leaf’s own ShortcutManagerBase::handle_keypress shadows the default it would call; this sibling trait, blanket-implemented for every manager, carries that body (the shape ElementBase has for Element).

Provided Methods§

Source

fn handle_keypress( self: Handle<Self>, app: &mut App, context: BuildContext, event: &KeyEvent, ) -> KeyEventResult

Flutter’s ShortcutManager.handleKeypress.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§