Skip to content

Commit

Permalink
prevent switching to search mode on key repeat
Browse files Browse the repository at this point in the history
  • Loading branch information
thmsobrmlr committed Nov 22, 2023
1 parent 707355b commit ba80622
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/lib/components/CommandBar/actionBarLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const actionBarLogic = kea<actionBarLogicType>([
actions.hidePalette()
}
} else if (event.key === 'Backspace') {
if (values.input.length === 0) {
if (values.input.length === 0 && event.repeat === false) {
// transition to search when pressing backspace with empty input
actions.setCommandBar(BarStatus.SHOW_SEARCH)
}
Expand Down

0 comments on commit ba80622

Please sign in to comment.