]> git.pond.sub.org Git - eow/blobdiff - static/eow.js
Ensure focus on input field
[eow] / static / eow.js
index aeac0049fede792242fe03a92f5aee05ed7856d2..bdad450a2fb2fb98240e8fd0334c11970880c4ef 100644 (file)
@@ -80,7 +80,7 @@ function inputfield_keyup(e) {
   if (e.keyCode == 13) { // Enter
     eowOut($("#prompt").text() + e.target.value);
     submit_cmdline(e.target.value);
-    window.scrollTo(0, window.outerHeight);
+    $("#inputfield").focus();
     e.target.value = "";
   }
 }