Merge pull request #2320 from atom/appcomands

Fix app-command event always return 'unknown'.
This commit is contained in:
Cheng Zhao 2015-07-24 13:28:30 +08:00
commit d822e0d720

View file

@ -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));