Gutter double click for selectAll

This commit is contained in:
DanyaPostfactum 2012-10-02 19:44:42 +10:00
commit afbd1e959c

View file

@ -50,9 +50,13 @@ function GutterHandler(mouseHandler) {
if (e.getShiftKey())
selection.selectTo(row, 0);
else
else {
if (e.domEvent.detail == 2) {
editor.selectAll();
return e.preventDefault();
}
mouseHandler.$clickSelection = editor.selection.getLineRange(row);
}
mouseHandler.captureMouse(e, "selectByLines");
return e.preventDefault();
});