From: Tim Siebels@Ubuntu Date: Sun, 25 May 2014 09:09:33 +0000 (+0200) Subject: Fixed up arrow in chrome X-Git-Url: https://git.saalbach.dev/?a=commitdiff_plain;h=1b84de80da6e8ec16ee42a8f21d0bfa707026185;p=binbsis50.git Fixed up arrow in chrome Jumps now at the end of the value by returning false so it prevents default action --- diff --git a/public/js/app.js b/public/js/app.js index e685325..32f6e1b 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -708,7 +708,8 @@ if (historycursor > 0) { DOM.guessbox.val(historyvalues[--historycursor]); } - break; + // Prevent default action to keep the cursor at the end of the word + return false; case 40: // down-arrow if (historycursor < historyvalues.length - 1) { DOM.guessbox.val(historyvalues[++historycursor]);