fix: dfeat: command parameters
This commit is contained in:
@@ -40,6 +40,18 @@ customElement<MdCommanderProps>(
|
||||
}
|
||||
}
|
||||
|
||||
// 补全未打开时,使用上下键浏览历史
|
||||
if (e.key === "ArrowUp" && !commander.showCompletions()) {
|
||||
e.preventDefault();
|
||||
commander.navigateHistory("up");
|
||||
return;
|
||||
}
|
||||
if (e.key === "ArrowDown" && !commander.showCompletions()) {
|
||||
e.preventDefault();
|
||||
commander.navigateHistory("down");
|
||||
return;
|
||||
}
|
||||
|
||||
if (e.key === "Enter" && !e.shiftKey) {
|
||||
e.preventDefault();
|
||||
commander.handleCommand();
|
||||
|
||||
Reference in New Issue
Block a user