Author: stippi Date: 2010-02-21 21:13:16 +0100 (Sun, 21 Feb 2010) New Revision: 35567 Changeset: http://dev.haiku-os.org/changeset/35567/haiku Modified: haiku/trunk/src/kits/interface/Window.cpp Log: Add comment explaining why MenusBeginning() is invoked before handling key events with the command key pressed. Modified: haiku/trunk/src/kits/interface/Window.cpp =================================================================== --- haiku/trunk/src/kits/interface/Window.cpp 2010-02-21 20:08:50 UTC (rev 35566) +++ haiku/trunk/src/kits/interface/Window.cpp 2010-02-21 20:13:16 UTC (rev 35567) @@ -3641,6 +3641,10 @@ 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);