From f76a4c58842f01e1de1d339afe66ba545b734500 Mon Sep 17 00:00:00 2001 From: nightwing Date: Mon, 18 Feb 2013 13:09:52 +0400 Subject: [PATCH] fix alt-shift click --- lib/ace/mouse/multi_select_handler.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/ace/mouse/multi_select_handler.js b/lib/ace/mouse/multi_select_handler.js index 7ac6ecd4..8a6e2a11 100644 --- a/lib/ace/mouse/multi_select_handler.js +++ b/lib/ace/mouse/multi_select_handler.js @@ -120,7 +120,7 @@ function onMouseDown(e) { } }); - } else if (!shift && alt && button == 0) { + } else if (alt && button == 0) { e.stop(); if (isMultiSelect && !ctrl) @@ -128,10 +128,15 @@ function onMouseDown(e) { else if (!isMultiSelect && ctrl) selection.addRange(); - selection.moveCursorToPosition(pos); - selection.clearSelection(); - var rectSel = []; + if (shift) { + screenAnchor = session.documentToScreenPosition(selection.lead); + blockSelect(); + } else { + selection.moveCursorToPosition(pos); + selection.clearSelection(); + } + var onMouseSelectionEnd = function(e) { clearInterval(timerId);