Opening a browserAction button should return focus to the previous location when closed
Categories
(Thunderbird :: Add-Ons: Extensions API, defect, P3)
Tracking
(thunderbird_esr6870+ fixed, thunderbird70 fixed, thunderbird71 fixed)
People
(Reporter: Fallen, Assigned: Fallen)
References
Details
Attachments
(1 file)
1.59 KB,
patch
|
darktrojan
:
review+
jorgk-bmo
:
approval-comm-beta+
jorgk-bmo
:
approval-comm-esr68+
|
Details | Diff | Splinter Review |
STR:
- Create a WX add-on with a browser action and a keyboard shortcut for it
- Navigate to message pane
- Press keyboard shortcut (clicking also works), do things in the browser action that will finally close the popup window
Expected:
- The focus returns to the message pane tree, arrow keys will allow moving to the next message
Actual:
- The focus goes to the window object, not the tree it was previously at
This is essential for add-ons that aim to improve keyboard navigation and make actions for selected items, such as my quickmove extension. Here is a wx version of the add-on you can use for testing: https://github.com/kewisch/quickmove-extension/tree/webextension
Assignee | ||
Comment 1•6 years ago
|
||
I'm thinking about where to best implement this. My initial thought was saving document.activeElement when the popup is opened, and then returning to that when closed. Any thoughts darktrojan?
Assignee | ||
Comment 2•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Comment 3•6 years ago
|
||
Updated•6 years ago
|
Updated•6 years ago
|
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/0f867b01c12b
Return focus to previous element when closing browser action. r=darktrojan
Assignee | ||
Comment 5•6 years ago
|
||
Comment 6•6 years ago
|
||
Assignee | ||
Comment 7•6 years ago
|
||
To me this seems low risk and I don't think it needs a beta cycle, I trust your judgement though.
Comment 8•6 years ago
|
||
TB 70 beta 4:
https://hg.mozilla.org/releases/comm-beta/rev/0e203dc1c0338a650d2fe3b2aed097cfadfdf7f7
We decided to do beta 4, so in it went. Will go into 68.2 after that.
Comment 9•6 years ago
|
||
TB 68.2.0 ESR:
https://hg.mozilla.org/releases/comm-esr68/rev/e08dd8151b3281553f308d1558af21e5c8ff53e4
Description
•