浏览代码

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 年之前
父节点
当前提交
4a0362c678
共有 1 个文件被更改,包括 0 次插入5 次删除
  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)' );
 			viewport.setHeight( '-webkit-calc(100% - 32px)', '-moz-calc(100% - 32px)', 'calc(100% - 32px)' );
 			document.body.appendChild( viewport.dom );
 			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 );
 			var menubar = new Menubar( signals );
 			menubar.setWidth( '100%' );
 			menubar.setWidth( '100%' );
 			menubar.setHeight( '32px' );
 			menubar.setHeight( '32px' );