mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +00:00
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:
parent
b08af83e83
commit
c5d79e2a47
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user