Skip to content
This repository was archived by the owner on Oct 9, 2020. It is now read-only.

Commit 95d7564

Browse files
committed
add conditional to get shortcut to work
1 parent 4ceca79 commit 95d7564

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/main.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ app.on('ready', async () => {
286286
}
287287
});
288288

289-
globalShortcut.register('CmdOrCtrl+Enter', () => {
289+
globalShortcut.register(`${process.platform === 'darwin' ? 'Cmd' : 'Ctrl'}+Enter`, () => {
290290
if (windowManager !== null && windowManager.isVisible()) {
291291
windowManager.webContents.send('send-tweet-shortcut');
292292
}

0 commit comments

Comments
 (0)