diff --git a/lib/ace/mouse/default_handlers.js b/lib/ace/mouse/default_handlers.js index daee58ce..bff2e2bb 100644 --- a/lib/ace/mouse/default_handlers.js +++ b/lib/ace/mouse/default_handlers.js @@ -109,9 +109,9 @@ function DefaultHandlers(mouseHandler) { pos = pos || this.editor.renderer.screenToTextCoordinates(this.x, this.y); var editor = this.editor; // allow double/triple click handlers to change selection - var shiftPresed = this.mousedownEvent.getShiftKey(); + var shiftPressed = this.mousedownEvent.getShiftKey(); setTimeout(function(){ - if (shiftPresed) { + if (shiftPressed) { editor.selection.selectToPosition(pos); } else if (!this.$clickSelection) {