fix alt-shift click
This commit is contained in:
parent
09e753941f
commit
f76a4c5884
1 changed files with 9 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue