mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-11 02:44:38 +00:00
fix: prevent backspace in profile selection
This commit is contained in:
@@ -47,6 +47,7 @@ export class SelectorModalComponent<T> {
|
|||||||
this.close()
|
this.close()
|
||||||
}
|
}
|
||||||
if (event.key === 'Backspace' && this.canEditSelected()) {
|
if (event.key === 'Backspace' && this.canEditSelected()) {
|
||||||
|
event.preventDefault()
|
||||||
this.filter = this.filteredOptions[this.selectedIndex].freeInputEquivalent!
|
this.filter = this.filteredOptions[this.selectedIndex].freeInputEquivalent!
|
||||||
this.onFilterChange()
|
this.onFilterChange()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user