1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #19381 from Snuffleupagus/rm-isInEditingMode

Remove unused `isInEditingMode` method (PR 19311 follow-up)
This commit is contained in:
Tim van der Meij 2025-01-26 16:44:21 +01:00 committed by GitHub
commit 329c3d1d71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1716,10 +1716,6 @@ class AnnotationEditorUIManager {
this.#updateModeCapability.resolve();
}
isInEditingMode() {
return this.#mode !== AnnotationEditorType.NONE;
}
addNewEditorFromKeyboard() {
if (this.currentLayer.canCreateNewEmptyEditor()) {
this.currentLayer.addNewEditor();