mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Fix app-command event always return 'unknown'.
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user