This commit is contained in:
Wliu
2018-01-26 18:08:43 -05:00
parent be24e6edf7
commit 7e0635d2c0
2 changed files with 8 additions and 3 deletions

View File

@@ -1762,13 +1762,18 @@ class TextEditorComponent {
return
}
if (button !== 0) return
// Ctrl-click brings up the context menu on macOS
if (platform === 'darwin' && ctrlKey) return
if (target && target.matches('.fold-marker')) {
const bufferPosition = model.bufferPositionForScreenPosition(screenPosition)
model.destroyFoldsContainingBufferPositions([bufferPosition], false)
return
}
const addOrRemoveSelection = metaKey || ctrlKey
const addOrRemoveSelection = metaKey || (ctrlKey && platform !== 'darwin')
switch (detail) {
case 1: