Explorar el Código

UI.Number blur when hitting enter.

Mr.doob hace 12 años
padre
commit
fc66a24179
Se han modificado 1 ficheros con 2 adiciones y 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;