Make the secondary menu button usable with the keyboard when NVDA is enabled
It's a temporary workaround until bug 1921984 is fixed.
This commit is contained in:
parent
783facb312
commit
392c17efa0
@ -2750,7 +2750,10 @@ function onClick(evt) {
|
|||||||
if (
|
if (
|
||||||
this.pdfViewer.containsElement(evt.target) ||
|
this.pdfViewer.containsElement(evt.target) ||
|
||||||
(appConfig.toolbar?.container.contains(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();
|
this.secondaryToolbar.close();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user