Bug 250072 - Block shortcut key for changing tab even when tab doesn't exist, to keep consitency.

ChatZilla only.
r=silver
p=glenjamin+bmo@gmail.com (Glen Mailer)
This commit is contained in:
silver%warwickcompsoc.co.uk 2005-11-26 21:03:00 +00:00
parent b08af83e83
commit c5d79e2a47

View File

@ -553,15 +553,15 @@ function onWindowKeyPress (e)
case 119:
case 120:
case 121: /* F10 */
var modifier = (e.ctrlKey || e.shiftKey || e.Altkey || e.metaKey);
if (e.ctrlKey || e.shiftKey || e.Altkey || e.metaKey)
break;
var idx = code - 112;
if (!modifier && (idx in client.viewsArray) &&
client.viewsArray[idx].source)
if ((idx in client.viewsArray) && client.viewsArray[idx].source)
{
var newView = client.viewsArray[idx].source;
dispatch("set-current-view", { view: newView });
e.preventDefault();
}
e.preventDefault();
break;
case 33: /* pgup */