1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Merge pull request #18830 from calixteman/menu_nvda

Make the secondary menu button usable with the keyboard when NVDA is enabled
This commit is contained in:
calixteman 2024-10-01 17:27:56 +02:00 committed by GitHub
commit 3cdc3258d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();
}