From b707aa02d8c33b5a69fb8008e951983f0b158bac Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Sat, 20 May 2023 13:06:20 +0100 Subject: [PATCH] On Enter open the page --- src/components/CommandMenu/CommandMenu.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/CommandMenu/CommandMenu.tsx b/src/components/CommandMenu/CommandMenu.tsx index 6184cfbf4..e19ef8b10 100644 --- a/src/components/CommandMenu/CommandMenu.tsx +++ b/src/components/CommandMenu/CommandMenu.tsx @@ -38,6 +38,8 @@ export function CommandMenu() { setActiveCounter( canGoPrev ? activeCounter - 1 : pages.length - 1 ); + } else if (e.key === 'Enter') { + // const activePage = pages[activeCounter] } }} />