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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user