Skip to content

Commit

Permalink
Fix Ctrl+Enter issue
Browse files Browse the repository at this point in the history
Fixes issues #155 - Error when pressing Ctrl+Enter when the "Prevent
sending with Enter" setting is on.
  • Loading branch information
amanharwara committed Aug 21, 2021
1 parent 81da469 commit e9a3b18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ if (!singleInstanceLock) {
}

if (input.key === "Enter" && input.control) {
context.webContents.executeJavaScript(
context.executeJavaScript(
`document.querySelector('[data-icon="send"]').click()`
);
e.preventDefault();
Expand Down

0 comments on commit e9a3b18

Please sign in to comment.