BWindow: Clean up dispatch of NO_COMMAND_KEY shortcuts.

Only search once for a shortcut exactly matching the current
modifiers, i.e. whether with or without COMMAND_KEY.

Also clarify some of the comments and logic.
This commit is contained in:
Augustin Cavalier
2025-04-25 14:51:29 -04:00
parent 023f509399
commit 01b71d945e
2 changed files with 15 additions and 16 deletions
+6 -4
View File
@@ -1085,8 +1085,9 @@
\brief Hook method that gets called just before a menu owned by the window is
shown.
\note This method is not invoked by a message, there is no
\c B_MENUS_BEGINNING flag.
It will also be invoked while dispatching shortcuts.
\note This method is not invoked by a message.
\since BeOS R3
*/
@@ -1097,8 +1098,9 @@
\brief Hook method that gets called just before a menu owned by the window is
hidden.
\note This method is not invoked by a message, there is no
\c B_MENUS_ENDED flag.
It will also be invoked after dispatching shortcuts.
\note This method is not invoked by a message.
\since BeOS R3
*/