From a4329d326c2e7e7892e51f599af923e68f0c5c37 Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Thu, 7 Jul 2022 15:16:01 +0200 Subject: [PATCH] [Editor] Allow editors deletion on Backspace or Delete keys --- src/display/editor/annotation_editor_layer.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/display/editor/annotation_editor_layer.js b/src/display/editor/annotation_editor_layer.js index b38770765..6b5380842 100644 --- a/src/display/editor/annotation_editor_layer.js +++ b/src/display/editor/annotation_editor_layer.js @@ -62,10 +62,16 @@ class AnnotationEditorLayer { ], [ [ + "Backspace", + "alt+Backspace", "ctrl+Backspace", + "shift+Backspace", "mac+Backspace", - "mac+ctrl+Backspace", "mac+alt+Backspace", + "mac+ctrl+Backspace", + "Delete", + "ctrl+Delete", + "shift+Delete", ], AnnotationEditorLayer.prototype.delete, ],