From 17cdbce8afe420732f6fbef7736a67bc2a0da5da Mon Sep 17 00:00:00 2001 From: Di Zhang Date: Fri, 28 Feb 2025 14:42:34 -0800 Subject: [PATCH] Change dialog delegate focus to use flat tree --- source | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/source b/source index 388bfb91c45..97f84989c32 100644 --- a/source +++ b/source @@ -81008,10 +81008,15 @@ dictionary CommandEventInit : EventInit {
  • If autofocusDelegate is not null, then return autofocusDelegate.

  • +
  • +

    If whereToLook is a dialog, let treeOrder be the + flat tree. Otherwise, let treeOrder be tree order.

    +
  • +
  • For each descendant of - whereToLook's descendants, in tree - order:

    + whereToLook's descendants, in + treeOrder:

    1. Let focusableArea be null.

    2. @@ -81053,9 +81058,14 @@ dictionary CommandEventInit : EventInit { trigger is given by the following steps:

        +
      1. +

        If focus target is a dialog, let treeOrder be the + flat tree. Otherwise, let treeOrder be tree order.

        +
      2. +
      3. For each descendant descendant of focus target, in - tree order:

        + treeOrder:

        1. If descendant does not have an