Don't handle ctrl-click events on macOS

It brings up the context menu, so we shouldn't change the cursor
position
This commit is contained in:
Nathan Sobo
2017-07-10 14:28:21 -06:00
parent 82619a989b
commit cd27b49dc4

View File

@@ -1667,6 +1667,9 @@ class TextEditorComponent {
return
}
// Ctrl-click brings up the context menu on macOS
if (platform === 'darwin' && ctrlKey) return
const addOrRemoveSelection = metaKey || (ctrlKey && platform !== 'darwin')
switch (detail) {