Explorar o código

UI.Number blur when hitting enter.

Mr.doob %!s(int64=12) %!d(string=hai) anos
pai
achega
fc66a24179
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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();
 
+		if ( event.keyCode === 13 ) dom.blur();
+
 	}, false );
 
 	this.min = - Infinity;