From: Gerd Flaig Date: Mon, 10 May 2010 20:29:34 +0000 (+0200) Subject: Ensure focus on input field X-Git-Url: http://git.pond.sub.org/?p=eow;a=commitdiff_plain;h=f242c1e751bece21633b46844c8817e06dce966b Ensure focus on input field --- diff --git a/static/eow.js b/static/eow.js index aeac004..bdad450 100644 --- a/static/eow.js +++ b/static/eow.js @@ -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 = ""; } }