diff --git a/app/assets/javascripts/views/editor/editor_view.ts b/app/assets/javascripts/views/editor/editor_view.ts index 74164a647d6..c33572ab411 100644 --- a/app/assets/javascripts/views/editor/editor_view.ts +++ b/app/assets/javascripts/views/editor/editor_view.ts @@ -114,7 +114,6 @@ class EditorViewCtrl extends PureViewCtrl<{}, EditorState> { private removeAltKeyObserver?: any private removeTrashKeyObserver?: any - private removeDeleteKeyObserver?: any private removeTabObserver?: any private removeTagsObserver!: () => void @@ -155,8 +154,6 @@ class EditorViewCtrl extends PureViewCtrl<{}, EditorState> { this.removeAltKeyObserver = undefined; this.removeTrashKeyObserver(); this.removeTrashKeyObserver = undefined; - this.removeDeleteKeyObserver(); - this.removeDeleteKeyObserver = undefined; this.removeTabObserver && this.removeTabObserver(); this.removeTabObserver = undefined; this.leftPanelPuppet = undefined; @@ -1162,19 +1159,6 @@ class EditorViewCtrl extends PureViewCtrl<{}, EditorState> { this.deleteNote(false); }, }); - - this.removeDeleteKeyObserver = this.application.getKeyboardService().addKeyObserver({ - key: KeyboardKey.Backspace, - modifiers: [ - KeyboardModifier.Meta, - KeyboardModifier.Shift, - KeyboardModifier.Alt - ], - onKeyDown: (event) => { - event.preventDefault(); - this.deleteNote(true); - }, - }); } onSystemEditorLoad() {