/// Trigger all matching shortcuts for given `ClientRegistry` for given `event`.
/// Reads currently pressed keys from `&self`.
/// `use_priority` switches between priority and non-priority shortcuts.
/// See FIDL documentation at //sdk/fidl/fuchsia.ui.shortcut/README.md.
Trigger all matching shortcuts for given `ClientRegistry` for given `event`.
Reads currently pressed keys from `&self`.
`use_priority` switches between priority and non-priority shortcuts.
Trigger all matching shortcuts for given ` ClientRegistry ` for given ` event ` . Reads currently pressed keys from ` &self ` . ` use_priority ` switches between priority and non - priority shortcuts .
async fn process_client_registry(
        &self,
        registry: Arc<Mutex<ClientRegistry>>,
        event: KeyEvent,
        use_priority: bool,
    ) -> Result<bool, Error> {
        let registry = registry.lock().await;
        let shortcuts = self.get_matching_shortuts(&registry, event, use_priority)?;
        if let Some(ref subscriber) = registry.subscriber {
            self.trigger_shortcuts(&subscriber, shortcuts).await
        } else {
            Ok(false)
        }
    }
async fn process_client_registry ( & self , registry : Arc < Mutex < ClientRegistry > > , event : KeyEvent , use_priority : bool , ) -> Result < bool , Error > { let registry = registry . lock ( ) . await ; let shortcuts = self . get_matching_shortuts ( & registry , event , use_priority ) ? ; if let Some ( ref subscriber ) = registry . subscriber { self . trigger_shortcuts ( & subscriber , shortcuts ) . await } else { Ok ( false ) } }
Trigger all matching shortcuts for given `ClientRegistry` for given `event`.
Trigger all matching shortcuts for given ` ClientRegistry ` for given ` event ` .
&self
registry
Arc<Mutex<ClientRegistry>>
event
KeyEvent
use_priority
bool