Closing a panel leaves input focus nowhere

RESOLVED INCOMPLETE

Status

Add-on SDK
General
RESOLVED INCOMPLETE
3 years ago
9 months ago

People

(Reporter: Wladimir Palant, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
When a panel is closed via panel.hide() or by pressing Escape, the input focus is completely lost (tested in Firefox 46.0a1 nightly on OS X 10.11). You can press Tab all you want, no element will be focused. I assume that the focus is on the content area of the panel which is no longer visible. It should be set to the browser content area instead.

Code setting input focus on the browser content area already exists for sidebars (see https://github.com/mozilla/addon-sdk/blob/5ac44b7e088c986bbbd8aaea57b95738eb071ead/lib/sdk/ui/sidebar/view.js#L205). AFAICT that's the only work-around right now, to let people do something useful with keyboard only after a panel is closed - you have to create a temporary sidebar, open it, close and dispose again. Needless to say, that's a huge hack even though it doesn't seem to cause any visual effect.
https://bugzilla.mozilla.org/show_bug.cgi?id=1399562
Status: NEW → RESOLVED
Last Resolved: 9 months ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.