This commit is contained in:
Vanessa 2023-12-02 20:56:05 +08:00
parent 14b22d6bf8
commit 3a1b55b1c3
3 changed files with 72 additions and 31 deletions

View file

@ -63,11 +63,9 @@ export const searchKeydown = (app: App, event: KeyboardEvent) => {
return true;
}
const targetId = (event.target as HTMLElement).id;
const assetHistoryElement = assetsElement.querySelector("#searchAssetHistoryList");
const assetInputElement = assetsElement.querySelector("#searchAssetInput") as HTMLInputElement;
if (event.key === "ArrowDown" && event.altKey) {
if (isAsset) {
toggleAssetHistory(assetHistoryElement, assetInputElement);
toggleAssetHistory(assetsElement);
} else {
if (targetId === "replaceInput") {
toggleReplaceHistory(element);