File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -73,9 +73,9 @@ module.exports = function registerMenu(win, state = {}) {
73
73
} ,
74
74
{
75
75
label : 'Run selection' ,
76
- accelerator : shortcuts . menu . RUN_SELECTION ,
76
+ accelerator : isMac ? shortcuts . menu . RUN_SELECTION : shortcuts . menu . RUN_SELECTION_WL ,
77
77
enabled : state . isConnected && state . view === 'editor' ,
78
- click : ( ) => win . webContents . send ( 'shortcut-cmd' , shortcuts . global . RUN_SELECTION )
78
+ click : ( ) => win . webContents . send ( 'shortcut-cmd' , ( isMac ? shortcuts . global . RUN_SELECTION : shortcuts . global . RUN_SELECTION_WL ) )
79
79
} ,
80
80
{
81
81
label : 'Stop' ,
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ module.exports = {
5
5
SAVE : 'CommandOrControl+S' ,
6
6
RUN : 'CommandOrControl+R' ,
7
7
RUN_SELECTION : 'CommandOrControl+Alt+R' ,
8
+ RUN_SELECTION_WL : 'CommandOrControl+Alt+S' ,
8
9
STOP : 'CommandOrControl+H' ,
9
10
RESET : 'CommandOrControl+Shift+R' ,
10
11
CLEAR_TERMINAL : 'CommandOrControl+L' ,
@@ -18,6 +19,7 @@ module.exports = {
18
19
SAVE : 'CmdOrCtrl+S' ,
19
20
RUN : 'CmdOrCtrl+R' ,
20
21
RUN_SELECTION : 'CmdOrCtrl+Alt+R' ,
22
+ RUN_SELECTION_WL : 'CmdOrCtrl+Alt+S' ,
21
23
STOP : 'CmdOrCtrl+H' ,
22
24
RESET : 'CmdOrCtrl+Shift+R' ,
23
25
CLEAR_TERMINAL : 'CmdOrCtrl+L' ,
You can’t perform that action at this time.
0 commit comments