From 569d9165efbd1aeef7238ae4166160865f75377c Mon Sep 17 00:00:00 2001 From: raylu Date: Sun, 21 Aug 2011 02:50:09 -0700 Subject: don't search when enter is hit on username field --- static/script.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'static/script.js') diff --git a/static/script.js b/static/script.js index ed5e2f9..4274c9c 100644 --- a/static/script.js +++ b/static/script.js @@ -213,6 +213,13 @@ function search(query) { return false; } +function userKeyPress(e) { + if (e.keyCode == 13) {// enter + $('#song').focus(); + return false; + } +} + function add(id, title) { params = { pid: pid, -- cgit v1.2.3