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:
@@ -2379,8 +2379,9 @@ BWindow::_InitData(BRect frame, const char* title, window_look look,
|
|||||||
fDefaultButton = NULL;
|
fDefaultButton = NULL;
|
||||||
|
|
||||||
// Shortcut 'Q' is handled in _HandleKeyDown() directly, as its message
|
// Shortcut 'Q' is handled in _HandleKeyDown() directly, as its message
|
||||||
// get sent to the application, and not one of our handlers
|
// get sent to the application, and not one of our handlers.
|
||||||
fNoQuitShortcut = false;
|
// It is only installed for non-modal windows, though.
|
||||||
|
fNoQuitShortcut = IsModal();
|
||||||
|
|
||||||
if ((fFlags & B_NOT_CLOSABLE) == 0 && !IsModal()) {
|
if ((fFlags & B_NOT_CLOSABLE) == 0 && !IsModal()) {
|
||||||
// Modal windows default to non-closable, but you can add the shortcut manually,
|
// Modal windows default to non-closable, but you can add the shortcut manually,
|
||||||
|
|||||||
Reference in New Issue
Block a user