pub struct KeyEventManager { /* private fields */ }Expand description
A singleton class that processes key messages from the platform and dispatches converted messages accordingly.
KeyEventManager receives platform key messages by
handle_key_data, and sends converted events to
HardwareKeyboard for record keeping and dispatching.
Flutter owns this from ServicesBinding; here it is the App’s singleton.
Implementations§
Source§impl KeyEventManager
impl KeyEventManager
Sourcepub fn instance(app: &mut App) -> Handle<KeyEventManager>
pub fn instance(app: &mut App) -> Handle<KeyEventManager>
The current KeyEventManager, if one has been created.
Sourcepub fn hardware_keyboard(
self: Handle<Self>,
app: &App,
) -> Handle<HardwareKeyboard>
pub fn hardware_keyboard( self: Handle<Self>, app: &App, ) -> Handle<HardwareKeyboard>
The keyboard this manager records key events on.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyEventManager
impl RefUnwindSafe for KeyEventManager
impl Send for KeyEventManager
impl Sync for KeyEventManager
impl Unpin for KeyEventManager
impl UnsafeUnpin for KeyEventManager
impl UnwindSafe for KeyEventManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more