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)

ARM
Gonk (Firefox OS)
defect
Not set
normal

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.
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]
Flags: needinfo?(rishav006)
Flags: needinfo?(rishav006)
Mass closing of Gaia::SMS bugs. End of an era :(
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
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.