Removing onKeyPress return statement

Also switched to using surfaceObserver and cleaned up some trailing whitespace.

Change-Id: If9a2b390e86f54b4c5ddfd499eefb31f0ab2c96f
This commit is contained in:
Christian Williams 2012-10-05 15:17:39 -07:00 committed by Trevor Parscal
parent 1ed7b3f96e
commit 4e585eb092

View file

@ -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' );