You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Escape on the message action bar More menu drops focus to body instead of returning it to the trigger #9156
Pressing Escape to close the message action bar's More menu leaves focus on <body> instead of returning it to the More trigger that opened it. A keyboard user who opens the menu and changes their mind is dropped out of the thread entirely and has to tab back in from the top of the document.
Measured
Studio chat thread, 20 messages, Chromium, driven through the thread weight smoke page so the real Thread renders.
Deliberately measured on the newest assistant message, whose action bar never autohides, so the bar is mounted for the whole sequence and unmounting cannot be a factor. bars is the count inside the target message and totalBars the count in the document:
rest: {"active": "TEXTAREA:", "bars": 1, "menuItems": 0, "totalBars": 1}
More focused: {"active": "BUTTON:More", "bars": 1, "menuItems": 0, "totalBars": 1}
after Enter: {"active": "DIV:Fork in new chat", "bars": 1, "menuItems": 3, "totalBars": 1}
after Escape: {"active": "BODY:BODY", "bars": 1, "menuItems": 0, "totalBars": 1}
The bar is mounted at every step, including after Escape. Focus still goes to body rather than back to BUTTON:More.
Expected
Escape should return focus to the trigger. That is the standard menu pattern and what the WAI-ARIA authoring practices specify for a menu button: "Escape: Closes the menu and moves focus to the button." Returning focus to the invoking control is what keeps the user's place in the document.
This is not caused by #8992 and #8992 does not fix it. It reproduces on that PR's merge base, and the measurement above is taken on a message whose bar is always mounted, which isolates it from that PR's autohide behaviour entirely.
It is worth recording now because #8992 makes it materially easier to reach. Before that change a keyboard user could not open an older reply's More menu at all, since the bar was out of the tab order, so this was only reachable on the newest message. #8992 restores keyboard access to every message's action bar, so the same dead end is now reachable on all of them.
Not investigated
I have not traced whether this originates in our ActionBarMorePrimitive usage, in assistant-ui, or in the underlying Radix dropdown, and I have not checked it on engines other than Chromium or on the Desktop webviews.
Activity
dhanadeep6 commentedon Aug 18, 2026
hi i want to work on this can i give it a try