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) {
|
} else if ((command_id & sc_mask) == SC_MAXIMIZE) {
|
||||||
NotifyWindowMaximize();
|
NotifyWindowMaximize();
|
||||||
} else {
|
} else {
|
||||||
std::string command = AppCommandToString(command_id & sc_mask);
|
std::string command = AppCommandToString(command_id);
|
||||||
FOR_EACH_OBSERVER(NativeWindowObserver,
|
FOR_EACH_OBSERVER(NativeWindowObserver,
|
||||||
observers_,
|
observers_,
|
||||||
OnExecuteWindowsCommand(command));
|
OnExecuteWindowsCommand(command));
|
||||||
|
|
Loading…
Add table
Reference in a new issue