From 4e585eb092adde5dcb794fdade8a18a734996598 Mon Sep 17 00:00:00 2001 From: Christian Williams Date: Fri, 5 Oct 2012 15:17:39 -0700 Subject: [PATCH] Removing onKeyPress return statement Also switched to using surfaceObserver and cleaned up some trailing whitespace. Change-Id: If9a2b390e86f54b4c5ddfd499eefb31f0ab2c96f --- modules/ve/ce/ve.ce.Surface.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/ve/ce/ve.ce.Surface.js b/modules/ve/ce/ve.ce.Surface.js index 75857ccc9d..18d0b10721 100644 --- a/modules/ve/ce/ve.ce.Surface.js +++ b/modules/ve/ce/ve.ce.Surface.js @@ -258,7 +258,7 @@ ve.ce.Surface.prototype.documentOnBlur = function () { */ ve.ce.Surface.prototype.onMouseDown = function ( e ) { // Old code to figure out if user clicked inside the document or not - leave it here for now - // $( e.target ).closest( '.ve-ce-documentNode' ).length === 0 + // $( e.target ).closest( '.ve-ce-documentNode' ).length === 0 if ( e.which === 1 ) { this.surfaceObserver.stop( true ); @@ -482,7 +482,7 @@ ve.ce.Surface.prototype.handleInsertAnnotations = function () { var _this = this; setTimeout(function() { _this.model.insertingAnnotations = false; - _this.pollChanges(); + _this.surfaceObserver.start(); }, 0); } }; @@ -616,7 +616,6 @@ ve.ce.Surface.prototype.onPaste = function () { * @param {jQuery.Event} e */ ve.ce.Surface.prototype.onKeyPress = function ( e ) { - return; var node, selection, data; ve.log( 'onKeyPress' );