From 1b84de80da6e8ec16ee42a8f21d0bfa707026185 Mon Sep 17 00:00:00 2001 From: "Tim Siebels@Ubuntu" Date: Sun, 25 May 2014 11:09:33 +0200 Subject: [PATCH] Fixed up arrow in chrome Jumps now at the end of the value by returning false so it prevents default action --- public/js/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]); -- 2.54.0