From c5d79e2a471cfd523c0c3c0810d4fc899a55322c Mon Sep 17 00:00:00 2001 From: "silver%warwickcompsoc.co.uk" Date: Sat, 26 Nov 2005 21:03:00 +0000 Subject: [PATCH] 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) --- extensions/irc/xul/content/handlers.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/irc/xul/content/handlers.js b/extensions/irc/xul/content/handlers.js index b280998d9591..08d1c1915b41 100644 --- a/extensions/irc/xul/content/handlers.js +++ b/extensions/irc/xul/content/handlers.js @@ -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 */