Skip to content

Commit

Permalink
Enhancement: quicklaunch fill search suggestion on arrowright (#4256)
Browse files Browse the repository at this point in the history
  • Loading branch information
shamoon authored Nov 6, 2024
1 parent 912ae0a commit 794ec12
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/quicklaunch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 794ec12

Please sign in to comment.