Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
Set useGesture to true on all js execution menu items, to allow e.g. …
Browse files Browse the repository at this point in the history
…file upload
  • Loading branch information
jwheare committed Mar 13, 2016
1 parent 6dd2f0f commit a607b6a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = {
accelerator: 'Cmd+,',
click: function (item, focusedWindow) {
if (focusedWindow) {
focusedWindow.webContents.executeJavaScript('SESSIONVIEW.openSettings()');
focusedWindow.webContents.executeJavaScript('SESSIONVIEW.openSettings()', true);
}
}
},
Expand Down Expand Up @@ -78,7 +78,7 @@ module.exports = {
label: 'Add a Network…',
click: function (item, focusedWindow) {
if (focusedWindow) {
focusedWindow.webContents.executeJavaScript('SESSIONVIEW.addNetwork()');
focusedWindow.webContents.executeJavaScript('SESSIONVIEW.addNetwork()', true);
}
}
},
Expand Down Expand Up @@ -123,15 +123,15 @@ module.exports = {
label: 'Upload a File…',
click: function (item, focusedWindow) {
if (focusedWindow) {
focusedWindow.webContents.executeJavaScript('if (cb()) cb().trigger("uploadPrompt");');
focusedWindow.webContents.executeJavaScript('if (cb()) cb().trigger("uploadPrompt");', true);
}
}
},
{
label: 'Start a Pastebin…',
click: function (item, focusedWindow) {
if (focusedWindow) {
focusedWindow.webContents.executeJavaScript('if (cb()) cb().trigger("pastePrompt");');
focusedWindow.webContents.executeJavaScript('if (cb()) cb().trigger("pastePrompt");', true);
}
}
}
Expand All @@ -146,7 +146,7 @@ module.exports = {
accelerator: 'Ctrl+,',
click: function (item, focusedWindow) {
if (focusedWindow) {
focusedWindow.webContents.executeJavaScript('SESSIONVIEW.openSettings()');
focusedWindow.webContents.executeJavaScript('SESSIONVIEW.openSettings()', true);
}
}
});
Expand Down Expand Up @@ -279,15 +279,15 @@ module.exports = {
label: 'File Uploads',
click: function (item, focusedWindow) {
if (focusedWindow) {
focusedWindow.webContents.executeJavaScript('SESSIONVIEW.files.show();');
focusedWindow.webContents.executeJavaScript('SESSIONVIEW.files.show();', true);
}
}
},
{
label: 'Pastebins',
click: function (item, focusedWindow) {
if (focusedWindow) {
focusedWindow.webContents.executeJavaScript('SESSIONVIEW.pastebins.show();');
focusedWindow.webContents.executeJavaScript('SESSIONVIEW.pastebins.show();', true);
}
}
}
Expand Down

0 comments on commit a607b6a

Please sign in to comment.