mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Merge pull request #22046 from atom/fix-context-menu-bug
Fixes context menu not working
This commit is contained in:
2620
package-lock.json
generated
2620
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -18,6 +18,7 @@
|
||||
"@atom/nsfw": "^1.0.27",
|
||||
"@atom/source-map-support": "^0.3.4",
|
||||
"@atom/watcher": "^1.3.5",
|
||||
"@hyurl/structured-clone": "^0.3.0",
|
||||
"about": "file:packages/about",
|
||||
"archive-view": "https://www.atom.io/api/packages/archive-view/versions/0.65.2/tarball",
|
||||
"async": "3.2.0",
|
||||
|
||||
@@ -9,6 +9,7 @@ const getAppName = require('../get-app-name');
|
||||
const path = require('path');
|
||||
const url = require('url');
|
||||
const { EventEmitter } = require('events');
|
||||
const { compose } = require('@hyurl/structured-clone');
|
||||
const StartupTime = require('../startup-time');
|
||||
|
||||
const ICON_PATH = path.resolve(__dirname, '..', '..', 'resources', 'atom.png');
|
||||
@@ -374,7 +375,7 @@ module.exports = class AtomWindow extends EventEmitter {
|
||||
sendCommandToBrowserWindow(command, ...args) {
|
||||
const action =
|
||||
args[0] && args[0].contextCommand ? 'context-command' : 'command';
|
||||
this.browserWindow.webContents.send(action, command, ...args);
|
||||
this.browserWindow.webContents.send(action, command, compose(...args));
|
||||
}
|
||||
|
||||
getDimensions() {
|
||||
|
||||
Reference in New Issue
Block a user