mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
[Editor] Add a toolbar to selected editors with a button to delete it (bug 1863763)
This commit is contained in:
parent
1b88aad0db
commit
334f0eb060
8 changed files with 403 additions and 3 deletions
|
@ -669,8 +669,9 @@ class AnnotationEditorUIManager {
|
|||
// Those shortcuts can be used in the toolbar for some other actions
|
||||
// like zooming, hence we need to check if the container has the
|
||||
// focus.
|
||||
checker: self =>
|
||||
self.#container.contains(document.activeElement) &&
|
||||
checker: (self, { target: el }) =>
|
||||
!(el instanceof HTMLButtonElement) &&
|
||||
self.#container.contains(el) &&
|
||||
!self.isEnterHandled,
|
||||
},
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue