Fix opening speed dial shortcuts via keyboard

This commit is contained in:
Paweł Forysiuk 2011-04-04 00:15:58 +02:00 committed by Christian Dywan
parent 493936adcb
commit 6719943d1c

View file

@ -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';