Skip to content

Commit

Permalink
fix: prevent backspace in profile selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Clem-Fern authored and Eugeny committed Feb 3, 2023
1 parent 1738caa commit 9e5c9ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tabby-core/src/components/selectorModal.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export class SelectorModalComponent<T> {
this.close()
}
if (event.key === 'Backspace' && this.canEditSelected()) {
event.preventDefault()
this.filter = this.filteredOptions[this.selectedIndex].freeInputEquivalent!
this.onFilterChange()
}
Expand Down

0 comments on commit 9e5c9ed

Please sign in to comment.