Skip to main content

dispatch_action

Function dispatch_action 

Source
pub fn dispatch_action(
    tree: &mut ElementTree,
    semantics: &[(ElementId, SemanticsData)],
    request: &ActionRequest,
    now_ms: u64,
    fallback_center: Point,
) -> bool
Expand description

平台无关的 AccessKit 动作路由(Focus / Click / SetValue)。

desktop 单/多窗口 host 共用同一份逻辑,避免 SetValue 角色映射、now_ms、 目标失效处理各自漂移。返回值 = 是否已消费。