get rid of focus box, make input focus any time terminal is clicked
authorScott Baker <smbaker@gmail.com>
Thu, 19 Jun 2014 21:32:52 +0000 (14:32 -0700)
committerScott Baker <smbaker@gmail.com>
Thu, 19 Jun 2014 21:32:52 +0000 (14:32 -0700)
planetstack/core/static/shell/opencloud_shell.css
planetstack/core/static/shell/opencloud_shell.js

index f535cd0..97df0a2 100644 (file)
@@ -15,8 +15,7 @@
 #terminal input {
   width: 875px;
   margin: 1px 0 1px 10px;
-  border: 1px dotted;
-  border-color:#808080;
+  border: none;
   display: inline;
   padding: 2px;
   background: black;
   border-radius:0;
 }
 
+#terminal input:focus {
+  box-shadow:none;
+}
+
 #terminal p {
   margin: 2px;
   color: #45FF17;
index d57d475..ab5a355 100644 (file)
@@ -338,6 +338,8 @@ function startTerminal() {
   $("#terminal_help1").show();
   $("#terminal_help2").show();
   $("#terminal_wait").hide();
+
+  $("#terminal").bind('click', function() { $(".readLine.active").focus(); });
 };
 
 $(document).ready(function() {