Browse Source

UI.Number blur when hitting enter.

Mr.doob 12 years ago
parent
commit
fc66a24179
1 changed files with 2 additions and 0 deletions
  1. 2 0
      editor/js/libs/ui.js

+ 2 - 0
editor/js/libs/ui.js

@@ -542,6 +542,8 @@ UI.Number = function ( number ) {
 
 
 		event.stopPropagation();
 		event.stopPropagation();
 
 
+		if ( event.keyCode === 13 ) dom.blur();
+
 	}, false );
 	}, false );
 
 
 	this.min = - Infinity;
 	this.min = - Infinity;