From 4fec945a033d3e7ef3717f22d71f6e3053f007fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 2 Aug 2006 10:16:10 +0000 Subject: [PATCH] Stefano's investigations did the trick: added MenusBeginning()/MenusEnded() in the shortcut evaluation. This fixes bug #531. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18338 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/Window.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/kits/interface/Window.cpp b/src/kits/interface/Window.cpp index e67ea205a6..3db7251a4b 100644 --- a/src/kits/interface/Window.cpp +++ b/src/kits/interface/Window.cpp @@ -3015,6 +3015,8 @@ BWindow::_HandleKeyDown(char key, uint32 modifiers) return true; } + MenusBeginning(); + Shortcut* shortcut = _FindShortcut(key, modifiers); if (shortcut != NULL) { // TODO: would be nice to move this functionality to @@ -3043,9 +3045,10 @@ BWindow::_HandleKeyDown(char key, uint32 modifiers) PostMessage(&message, target); } } - } + MenusEnded(); + // we always eat the event if the command key was pressed return true; }