Browse Source

Editor: Moved outline style into Viewport.

Mr.doob 12 years ago
parent
commit
f1c17394c8
2 changed files with 1 additions and 4 deletions
  1. 0 2
      editor/index.html
  2. 1 2
      editor/js/ui/Viewport.js

+ 0 - 2
editor/index.html

@@ -14,8 +14,6 @@
 				border: 0px;
 				border: 0px;
 				border-top: 1px solid #ccc;
 				border-top: 1px solid #ccc;
 			}
 			}
-
-			.hideFocus:focus { outline: 0 }
 		</style>
 		</style>
 	</head>
 	</head>
 	<body>
 	<body>

+ 1 - 2
editor/js/ui/Viewport.js

@@ -497,10 +497,9 @@ var Viewport = function ( signals ) {
 	// must be done here, otherwise it doesn't work
 	// must be done here, otherwise it doesn't work
 
 
 	container.dom.tabIndex = 1;
 	container.dom.tabIndex = 1;
+	container.dom.style.outline = 'transparent';
 	container.dom.addEventListener( 'keydown', onKeyDown, false );
 	container.dom.addEventListener( 'keydown', onKeyDown, false );
 
 
-	container.dom.className = "hideFocus";
-
 	//
 	//
 
 
 	function updateMaterials( root ) {
 	function updateMaterials( root ) {