fix alt-shift click

This commit is contained in:
nightwing 2013-02-18 13:09:52 +04:00
commit f76a4c5884

View file

@ -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);