Skip to content

Commit 9759ed7

Browse files
committed
Replaced Win/Linux Ctrl+Alt+R ignored shortcut with Ctrl+Alt+S
Signed-off-by: ubi de feo <me@ubidefeo.com>
1 parent 9231661 commit 9759ed7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

backend/menu.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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',

backend/shortcuts.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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',

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy