Closed
Bug 1116772
Opened 11 years ago
Closed 8 years ago
[Messages] We should focus the previously focussed element after closing dialogs
Categories
(Firefox OS Graveyard :: Gaia::SMS, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: julienw, Unassigned, Mentored)
References
Details
(Whiteboard: [sms-papercuts][lang=js])
In Bug 1112868, when a dialog is displayed, we blur the activeElement so that the keyboard disappears, and we focus the dialog for accessibility reason.
It would be a good idea to save the activeElement before blurring it, and then focussing it after hiding the dialog.
It should be done both in apps/sms/js/dialog.js and shared/js/option_menu.js.
| Reporter | ||
Comment 1•11 years ago
|
||
Writing the unit tests might be tricky because when I tried, document.activeElement is always document.body while running the tests, probably because of the way the tests are run.
Mentor: felash
Whiteboard: [sms-papercuts] → [sms-papercuts][lang=js]
Updated•10 years ago
|
Flags: needinfo?(rishav006)
Updated•10 years ago
|
Flags: needinfo?(rishav006)
| Reporter | ||
Comment 2•8 years ago
|
||
Mass closing of Gaia::SMS bugs. End of an era :(
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
| Reporter | ||
Comment 3•8 years ago
|
||
Mass closing of Gaia::SMS bugs. End of an era :(
You need to log in
before you can comment on or make changes to this bug.
Description
•