[Xfce4-commits] <midori:master> Fix opening speed dial shortcuts via keyboard

Christian Dywan noreply at xfce.org
Mon Apr 4 00:26:01 CEST 2011


Updating branch refs/heads/master
         to 6719943d1ca7d9e7f74b0a761a3508cb2cb19cc4 (commit)
       from 493936adcb014b28d598db00aea862b34aff2e42 (commit)

commit 6719943d1ca7d9e7f74b0a761a3508cb2cb19cc4
Author: Paweł Forysiuk <tuxator at o2.pl>
Date:   Mon Apr 4 00:15:58 2011 +0200

    Fix opening speed dial shortcuts via keyboard

 data/speeddial-head.html |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/data/speeddial-head.html b/data/speeddial-head.html
index 39508ea..0c901bd 100644
--- a/data/speeddial-head.html
+++ b/data/speeddial-head.html
@@ -313,14 +313,14 @@
 
         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';



More information about the Xfce4-commits mailing list