Co-authored-by: Ruibin Xing <xingruibin@kanyun.com>pull/1039/head
parent
b69f6916fc
commit
770b4b3b59
|
@ -182,6 +182,16 @@ export function FilterList({
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (e.ctrlKey && e.key === "n") {
|
||||
setSelectionOption(
|
||||
Math.min(matchingOptions.length - 1, selectedOption + 1),
|
||||
);
|
||||
return true;
|
||||
}
|
||||
if (e.ctrlKey && e.key === "p") {
|
||||
setSelectionOption(Math.max(0, selectedOption - 1));
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}}
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue