fix: Esc
prevent default (browser) action
This commit is contained in:
parent
1e274a81cc
commit
8f7b91e3df
@ -173,6 +173,7 @@ export function FilterList({
|
|||||||
case "Escape":
|
case "Escape":
|
||||||
exiting = true;
|
exiting = true;
|
||||||
onSelect(undefined);
|
onSelect(undefined);
|
||||||
|
e.preventDefault();
|
||||||
break;
|
break;
|
||||||
case " ":
|
case " ":
|
||||||
if (completePrefix && !text) {
|
if (completePrefix && !text) {
|
||||||
|
Loading…
Reference in New Issue
Block a user