File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 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 = {}) {
7373 } ,
7474 {
7575 label : 'Run selection' ,
76- accelerator : shortcuts . menu . RUN_SELECTION ,
76+ accelerator : isMac ? shortcuts . menu . RUN_SELECTION : shortcuts . menu . RUN_SELECTION_WL ,
7777 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 ) )
7979 } ,
8080 {
8181 label : 'Stop' ,
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ module.exports = {
55 SAVE : 'CommandOrControl+S' ,
66 RUN : 'CommandOrControl+R' ,
77 RUN_SELECTION : 'CommandOrControl+Alt+R' ,
8+ RUN_SELECTION_WL : 'CommandOrControl+Alt+S' ,
89 STOP : 'CommandOrControl+H' ,
910 RESET : 'CommandOrControl+Shift+R' ,
1011 CLEAR_TERMINAL : 'CommandOrControl+L' ,
@@ -18,6 +19,7 @@ module.exports = {
1819 SAVE : 'CmdOrCtrl+S' ,
1920 RUN : 'CmdOrCtrl+R' ,
2021 RUN_SELECTION : 'CmdOrCtrl+Alt+R' ,
22+ RUN_SELECTION_WL : 'CmdOrCtrl+Alt+S' ,
2123 STOP : 'CmdOrCtrl+H' ,
2224 RESET : 'CmdOrCtrl+Shift+R' ,
2325 CLEAR_TERMINAL : 'CmdOrCtrl+L' ,
You can’t perform that action at this time.
0 commit comments