projects
/
eow
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e82c6e
)
Ensure focus on input field
author
Gerd Flaig
<gefla@rose.pond.sub.org>
Mon, 10 May 2010 20:29:34 +0000
(22:29 +0200)
committer
Gerd Flaig
<gefla@rose.pond.sub.org>
Mon, 10 May 2010 20:29:34 +0000
(22:29 +0200)
static/eow.js
patch
|
blob
|
history
diff --git
a/static/eow.js
b/static/eow.js
index aeac0049fede792242fe03a92f5aee05ed7856d2..bdad450a2fb2fb98240e8fd0334c11970880c4ef 100644
(file)
--- 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 = "";
}
}