Address feedback

This commit is contained in:
Harrison Healey
2025-07-22 15:02:58 -04:00
parent aefe3792d3
commit d9df624de2
+1 -1
View File
@@ -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();
}