Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
/ jfx11u Public archive

Commit

Permalink
8089986: Menu beeps when mnemonics is used
Browse files Browse the repository at this point in the history
Reviewed-by: kcr
Backport-of: c798d07
  • Loading branch information
arapte committed Feb 3, 2023
1 parent a78d6a9 commit 509d6cf
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,9 @@ LRESULT GlassWindow::WindowProc(UINT msg, WPARAM wParam, LPARAM lParam)
case WM_CAPTURECHANGED:
ViewContainer::NotifyCaptureChanged(GetHWND(), (HWND)lParam);
break;
case WM_MENUCHAR:
// Stop the beep when missing mnemonic or accelerator key JDK-8089986
return MNC_CLOSE << 16;
case WM_SYSKEYDOWN:
case WM_SYSKEYUP:
case WM_KEYDOWN:
Expand Down

1 comment on commit 509d6cf

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.