Change step back shortcut in command palette to Shift+Backspace (#5604)

* Change cmdbar step back shortcut to Shift+Backspace

* Add visual button for step back

* Make the shortcut apply no matter what's in the input
This commit is contained in:
Frank Noirot
2025-03-05 17:57:47 -05:00
committed by GitHub
parent c13bdbb749
commit b947dad6e9
10 changed files with 41 additions and 29 deletions

View File

@ -146,14 +146,10 @@ function CommandBarKclInput({
},
},
{
key: 'Backspace',
run: (editor) => {
// Only step back if the editor is empty
if (editor.state.doc.toString() === '') {
stepBack()
return true
}
return false
key: 'Shift-Backspace',
run: () => {
stepBack()
return true
},
},
]),