]> git.example.dev Git - binbsis50.git/commitdiff
Fixed up arrow in chrome
authorTim Siebels@Ubuntu <tim_siebels_aurich@yahoo.de>
Sun, 25 May 2014 09:09:33 +0000 (11:09 +0200)
committerLuigi Pinca <luigipinca@gmail.com>
Sun, 25 May 2014 10:39:52 +0000 (12:39 +0200)
Jumps now at the end of the value by returning false so it prevents default action

public/js/app.js

index e685325ee4c5ecccca62078dc7e461bc5bd93808..32f6e1b2dad4b6e8c2ef1ec036e295fc5bdcc72b 100644 (file)
           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]);