* Handles shortcuts only when the window is active. This fixes bug #3414 (and hopefully is the R5 behavior).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29179 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
9d7d4a74b5
commit
a13e53fe4f
@ -3400,8 +3400,8 @@ BWindow::_HandleKeyDown(BMessage* event)
|
||||
}
|
||||
}
|
||||
|
||||
// Handle shortcuts
|
||||
if ((modifiers & B_COMMAND_KEY) != 0) {
|
||||
// Handle shortcuts when window is active
|
||||
if ((modifiers & B_COMMAND_KEY) != 0 && fActive) {
|
||||
// Command+q has been pressed, so, we will quit
|
||||
// the shortcut mechanism doesn't allow handlers outside the window
|
||||
if (!fNoQuitShortcut && (key == 'Q' || key == 'q')) {
|
||||
|
Loading…
Reference in New Issue
Block a user