[Editor] Add a toolbar to selected editors with a button to delete it (bug 1863763)

This commit is contained in:
Calixte Denizet 2023-11-08 18:13:15 +01:00
parent 1b88aad0db
commit 334f0eb060
8 changed files with 403 additions and 3 deletions

View file

@ -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,
},
],