]> spindle.queued.net Git - midori/commitdiff
Fix opening speed dial shortcuts via keyboard
authorPaweł Forysiuk <tuxator@o2.pl>
Sun, 3 Apr 2011 22:15:58 +0000 (00:15 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sun, 3 Apr 2011 22:15:58 +0000 (00:15 +0200)
data/speeddial-head.html

index 39508ea3167f513039b18d41122534992db40901..0c901bd7c30322b0a099166c5118a2f53c952166 100644 (file)
 
         if ($(key_id))
         {
-            if (key_id.substr(1) * 10 > sc.shortcuts.length)
+            if (key_id.substr(1) > 9)
             {
                 if (getAction (key_id))
                     document.location = $(key_id).children[1];
                 key_id = 's';
             }
             else
-                key_timeout = setTimeout ('if (getAction (key_id)) document.location = $(key_id).children[1]; key_id = \'s\'', 3000);
+                key_timeout = setTimeout ('if (getAction (key_id)) document.location = $(key_id).children[1]; key_id = \'s\'', 1000);
         }
         else
             key_id = 's';