Skip to content

Commit

Permalink
Make the secondary menu button usable with the keyboard when NVDA is …
Browse files Browse the repository at this point in the history
…enabled

It's a temporary workaround until bug 1921984 is fixed.
  • Loading branch information
calixteman committed Oct 1, 2024
1 parent 783facb commit 392c17e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2750,7 +2750,10 @@ function onClick(evt) {
if (
this.pdfViewer.containsElement(evt.target) ||
(appConfig.toolbar?.container.contains(evt.target) &&
evt.target !== appConfig.secondaryToolbar?.toggleButton)
// TODO: change the `contains` for an equality check when the bug:
// https://bugzilla.mozilla.org/show_bug.cgi?id=1921984
// is fixed.
!appConfig.secondaryToolbar?.toggleButton.contains(evt.target))
) {
this.secondaryToolbar.close();
}
Expand Down

0 comments on commit 392c17e

Please sign in to comment.