소스 검색

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)' );
 			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' );