Merge pull request #2320 from atom/appcomands
Fix app-command event always return 'unknown'.
This commit is contained in:
commit
d822e0d720
1 changed files with 1 additions and 1 deletions
|
@ -929,7 +929,7 @@ bool NativeWindowViews::ExecuteWindowsCommand(int command_id) {
|
|||
} else if ((command_id & sc_mask) == SC_MAXIMIZE) {
|
||||
NotifyWindowMaximize();
|
||||
} else {
|
||||
std::string command = AppCommandToString(command_id & sc_mask);
|
||||
std::string command = AppCommandToString(command_id);
|
||||
FOR_EACH_OBSERVER(NativeWindowObserver,
|
||||
observers_,
|
||||
OnExecuteWindowsCommand(command));
|
||||
|
|
Loading…
Add table
Reference in a new issue