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:
commit
3cdc3258d9
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue