From e29de193bc55f4aeee4e77f3dc3aac3700f6e2c6 Mon Sep 17 00:00:00 2001 From: Fons van der Plas Date: Wed, 9 Sep 2020 14:14:03 +0200 Subject: [PATCH] =?UTF-8?q?=E2=8C=A8=20Fix=20backspace=20in=20feedback=20b?= =?UTF-8?q?ox?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/components/Editor.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/components/Editor.js b/frontend/components/Editor.js index c1a9a0f6e3..11b55a1fb4 100644 --- a/frontend/components/Editor.js +++ b/frontend/components/Editor.js @@ -646,8 +646,10 @@ export class Editor extends Component { // fall into: case 46: // delete const selected = this.state.notebook.cells.filter((c) => c.selected) - this.requests.confirm_delete_multiple(selected) - e.preventDefault() + if (selected.length > 0) { + this.requests.confirm_delete_multiple(selected) + e.preventDefault() + } break case 191: // ? or / if (!(e.ctrlKey && e.shiftKey)) {