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

@ -142,7 +142,7 @@ function CommandBarSelectionInput({
placeholder="Select an entity with your mouse"
className="absolute inset-0 w-full h-full opacity-0 cursor-default"
onKeyDown={(event) => {
if (event.key === 'Backspace') {
if (event.key === 'Backspace' && event.shiftKey) {
stepBack()
} else if (event.key === 'Escape') {
commandBarActor.send({ type: 'Close' })