fuchsia.ui.shortcut
provides information about activation of keyboard combinations.
At the moment, provides registering and notification APIs for “hotkey” shortcuts i.e. key + modifiers.
Scenic View hierarchy is used as a consolidated disambiguation mechanism. This also implies that a component should provide a ViewRef in order to use shortcuts manager API. Only focused components (i.e. ViewRef is on the Focus chain) are notified of the shortcut activation.
For the cases of shortcut conflicts (e.g. parent and child components both register CTRL + C shortcut listeners), the child component take precedence, unless parent uses special flag when registering for the shortcut (use_priority = true).
Full disambiguation procedure:
use_priority = true
resolution step:use_priority = true
participatehandled = true
use_priority = false
resolution step:use_priority = false
participatehandled = true