Add comment explaining why MenusBeginning() is invoked before handling key events
with the command key pressed. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35567 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
dd4974484f
commit
43a7eb6ca5
@ -3641,6 +3641,10 @@ BWindow::_HandleKeyDown(BMessage* event)
|
||||
return true;
|
||||
}
|
||||
|
||||
// Pretend that the user opened a menu, to give the subclass a
|
||||
// chance to update it's menus. This may install new shortcuts,
|
||||
// which is why we have to call it here, before trying to find
|
||||
// a shortcut for the given key.
|
||||
MenusBeginning();
|
||||
|
||||
Shortcut* shortcut = _FindShortcut(key, modifiers);
|
||||
|
Loading…
Reference in New Issue
Block a user