mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-24 16:05:00 +08:00
Address feedback
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user