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

Commit

Permalink
Merge pull request #101 from jonathontoon/develop
Browse files Browse the repository at this point in the history
add conditional to get shortcut to work
  • Loading branch information
jonathontoon authored Feb 11, 2018
2 parents f26dc4d + 95d7564 commit f47dc10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ app.on('ready', async () => {
}
});

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

0 comments on commit f47dc10

Please sign in to comment.