mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user