Navigate through the collapsible/expandable items.
Observe the issue.
What is the expected behavior? (add screenshot)
'Find' and 'Tools' buttons should retain the focus when user collapses them.
What went wrong? (add screenshot)
Controls ('Find' and 'Tools') are not retaining the keyboard focus when user collapses 'Find' and 'Tools' buttons via 'ESC' key.'Tools' button retains focus when user doesn't navigate to the items under it.
Attach (recommended) or Link to PDF file here: PDF viewer compressed.tracemonkey-pldi-09.pdf (mozilla.github.io)
Configuration:
Steps to reproduce the problem:
What is the expected behavior? (add screenshot) 'Find' and 'Tools' buttons should retain the focus when user collapses them.
What went wrong? (add screenshot) Controls ('Find' and 'Tools') are not retaining the keyboard focus when user collapses 'Find' and 'Tools' buttons via 'ESC' key.'Tools' button retains focus when user doesn't navigate to the items under it.
https://github.com/gdh1995/pdf.js/assets/93735775/324475cf-9753-4211-9e8f-71335dcb9774