Enhancement: quicklaunch fill search suggestion on arrowright (#4256)

pull/4275/head v0.9.12
shamoon 2 months ago committed by GitHub
parent 912ae0adfc
commit 794ec127cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -98,6 +98,12 @@ export default function QuickLaunch({ servicesAndBookmarks, searchString, setSea
} else if (event.key === "ArrowUp" && currentItemIndex > 0) {
setCurrentItemIndex(currentItemIndex - 1);
event.preventDefault();
} else if (
event.key === "ArrowRight" &&
results[currentItemIndex] &&
results[currentItemIndex].type === "searchSuggestion"
) {
setSearchString(results[currentItemIndex].name);
}
}

Loading…
Cancel
Save