From cd27b49dc471db63c82850d119e7c98293f251a2 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Mon, 10 Jul 2017 14:28:21 -0600 Subject: [PATCH] Don't handle ctrl-click events on macOS It brings up the context menu, so we shouldn't change the cursor position --- src/text-editor-component.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/text-editor-component.js b/src/text-editor-component.js index fef64d654..dfcdbc150 100644 --- a/src/text-editor-component.js +++ b/src/text-editor-component.js @@ -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) {