Skip to main content

AppKeyboard

Trait AppKeyboard 

Source
pub trait AppKeyboard: Send + Sync {
    // Provided method
    fn perform_app_keyboard<'life0, 'async_trait>(
        &'life0 self,
        request: AppKeyboardRequest,
    ) -> Pin<Box<dyn Future<Output = Result<AppKeyboardResult, PlatformError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

Dispatch keyboard input to the host app’s focused window.

Symmetric to AppMouse: app/window-level so it can target native chrome, WebViews, and desktop shells consistently.

Provided Methods§

Source

fn perform_app_keyboard<'life0, 'async_trait>( &'life0 self, request: AppKeyboardRequest, ) -> Pin<Box<dyn Future<Output = Result<AppKeyboardResult, PlatformError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§