diff --git a/webapp/channels/src/components/menu/menu.tsx b/webapp/channels/src/components/menu/menu.tsx index c520ea95642..7d5896f3cd1 100644 --- a/webapp/channels/src/components/menu/menu.tsx +++ b/webapp/channels/src/components/menu/menu.tsx @@ -193,7 +193,7 @@ export function Menu(props: Props) { } function handleMenuButtonKeyDown(event: KeyboardEvent) { - if (event.key === 'Enter' || event.key === ' ') { + if (isKeyPressed(event, Constants.KeyCodes.ENTER) || isKeyPressed(event, Constants.KeyCodes.SPACE)) { // Prevent the event from bubbling up to a parent's keydown handler so that it can trigger a click event event.stopPropagation(); }