From 794ec127cd2d27a35666f54f67cf3966893f32a6 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 6 Nov 2024 10:24:09 -0800 Subject: [PATCH] Enhancement: quicklaunch fill search suggestion on arrowright (#4256) --- src/components/quicklaunch.jsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/quicklaunch.jsx b/src/components/quicklaunch.jsx index f20890652..9f55f973c 100644 --- a/src/components/quicklaunch.jsx +++ b/src/components/quicklaunch.jsx @@ -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); } }