This commit is contained in:
nightwing 2013-11-05 21:23:25 +04:00
commit 68c6c4e86c

View file

@ -109,9 +109,9 @@ function DefaultHandlers(mouseHandler) {
pos = pos || this.editor.renderer.screenToTextCoordinates(this.x, this.y); pos = pos || this.editor.renderer.screenToTextCoordinates(this.x, this.y);
var editor = this.editor; var editor = this.editor;
// allow double/triple click handlers to change selection // allow double/triple click handlers to change selection
var shiftPresed = this.mousedownEvent.getShiftKey(); var shiftPressed = this.mousedownEvent.getShiftKey();
setTimeout(function(){ setTimeout(function(){
if (shiftPresed) { if (shiftPressed) {
editor.selection.selectToPosition(pos); editor.selection.selectToPosition(pos);
} }
else if (!this.$clickSelection) { else if (!this.$clickSelection) {