Przeglądaj źródła

UI.Number blur when hitting enter.

Mr.doob 12 lat temu
rodzic
commit
fc66a24179
1 zmienionych plików z 2 dodań i 0 usunięć
  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;