Skip to content

Commit

Permalink
⌨ Fix backspace in feedback box
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Sep 9, 2020
1 parent 2f060dc commit e29de19
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/components/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit e29de19

Please sign in to comment.