tweak selectByWords
This commit is contained in:
parent
38eb07df67
commit
241776dd4c
3 changed files with 12 additions and 19 deletions
|
|
@ -58,13 +58,10 @@ function GutterHandler(mouseHandler) {
|
|||
var row = e.getDocumentPosition().row;
|
||||
var selection = editor.session.selection;
|
||||
|
||||
if (e.getShiftKey()) {
|
||||
if (e.getShiftKey())
|
||||
selection.selectTo(row, 0);
|
||||
} else {
|
||||
selection.moveCursorTo(row, 0);
|
||||
selection.selectLine();
|
||||
mouseHandler.$clickSelection = selection.getRange();
|
||||
}
|
||||
else
|
||||
mouseHandler.$clickSelection = editor.selection.getLineRange(row);
|
||||
|
||||
mouseHandler.captureMouse(e, "selectByLines");
|
||||
return e.preventDefault();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue