Jelajahi Sumber

Editor: Removed viewport.focus()
This gave me a hard time in a presentation where I was embeding the editor in one of the slides and it was stealing the focus...

Mr.doob 12 tahun lalu
induk
melakukan
4a0362c678
1 mengubah file dengan 0 tambahan dan 5 penghapusan
  1. 0 5
      editor/index.html

+ 0 - 5
editor/index.html

@@ -129,11 +129,6 @@
 			viewport.setHeight( '-webkit-calc(100% - 32px)', '-moz-calc(100% - 32px)', 'calc(100% - 32px)' );
 			document.body.appendChild( viewport.dom );
 
-			// set focus on Viewport to get hotkeys working
-			// right from the initial page load
-
-			viewport.dom.focus();
-
 			var menubar = new Menubar( signals );
 			menubar.setWidth( '100%' );
 			menubar.setHeight( '32px' );