Modal windows no longer install the 'Q' shortcut anymore. This fixes bug #1256.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21311 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2007-06-03 20:33:56 +00:00
parent b2ed0e7acf
commit 1e651d5b4f
+3 -2
View File
@@ -2379,8 +2379,9 @@ BWindow::_InitData(BRect frame, const char* title, window_look look,
fDefaultButton = NULL;
// Shortcut 'Q' is handled in _HandleKeyDown() directly, as its message
// get sent to the application, and not one of our handlers
fNoQuitShortcut = false;
// get sent to the application, and not one of our handlers.
// It is only installed for non-modal windows, though.
fNoQuitShortcut = IsModal();
if ((fFlags & B_NOT_CLOSABLE) == 0 && !IsModal()) {
// Modal windows default to non-closable, but you can add the shortcut manually,