/// Emulates a key release event using input3 interface.
/// Returns a future that resolves to a FIDL response from manager service.
Emulates a key release event using input3 interface.
Returns a future that resolves to a FIDL response from manager service.
Emulates a key release event using input3 interface . Returns a future that resolves to a FIDL response from manager service .
pub async fn release_key3(&self, key: input::Key) -> Result<bool, Error> {
        // Process key event that triggers a shortcut.
        let event = ui_input3::KeyEvent {
            timestamp: None,
            type_: Some(ui_input3::KeyEventType::Released),
            key: Some(key),
            modifiers: None,
            ..ui_input3::KeyEvent::EMPTY
        };
        self.manager.handle_key3_event(event).check()?.await.map_err(Into::into)
    }
pub async fn release_key3 ( & self , key : input :: Key ) -> Result < bool , Error > { // Process key event that triggers a shortcut. let event = ui_input3 :: KeyEvent { timestamp : None , type_ : Some ( ui_input3 :: KeyEventType :: Released ) , key : Some ( key ) , modifiers : None , .. ui_input3 :: KeyEvent :: EMPTY } ; self . manager . handle_key3_event ( event ) . check ( ) ? . await . map_err ( Into :: into ) }
Emulates a key release event using input3 interface.
Emulates a key release event using input3 interface .
&self
key
input::Key