changeset 1300:590ad449ac7f

improve web shell
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 13 Jan 2019 15:31:39 -0700
parents c214cd0413dd
children a9cc35c71eb0
files src/luan/modules/http/tools/Shell.luan
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
diff -r c214cd0413dd -r 590ad449ac7f src/luan/modules/http/tools/Shell.luan
--- a/src/luan/modules/http/tools/Shell.luan	Thu Jan 10 23:40:52 2019 -0700
+++ b/src/luan/modules/http/tools/Shell.luan	Sun Jan 13 15:31:39 2019 -0700
@@ -81,6 +81,11 @@
 			pre.innerHTML += '\n<%=concat(t,"\t")%>';
 <%
 		end
+%>
+		var input = document.querySelector('input');
+		input.scrollIntoView();
+		input.blur();  input.focus();  // because Chrome is retarded
+<%
 		return
 	end
 %>
@@ -138,7 +143,7 @@
 	</head>
 	<body>
 		<pre>Luan <%=Luan.VERSION%></pre>
-		<form autocomplete=off onsubmit="submitted(); return false">
+		<form onsubmit="submitted(); return false">
 			<table>
 				<tr>
 					<td>&gt;&nbsp;</td>