mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Check for e.ctrlKey instead of e.metaKey if not on Mac.
This commit is contained in:
@@ -387,7 +387,7 @@ class EditorView extends View
|
||||
|
||||
screenPosition = @screenPositionFromMouseEvent(e)
|
||||
if clickCount == 1
|
||||
if e.metaKey
|
||||
if e.metaKey or (process.platform isnt 'darwin' and e.ctrlKey)
|
||||
@editor.addCursorAtScreenPosition(screenPosition)
|
||||
else if e.shiftKey
|
||||
@editor.selectToScreenPosition(screenPosition)
|
||||
|
||||
Reference in New Issue
Block a user