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
This commit is contained in:
Axel Dörfler
2006-08-02 10:16:10 +00:00
parent 9cd5adb2a5
commit 4fec945a03
+4 -1
View File
@@ -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;
}