Bug 514919 - Add tab-switching shortcuts that work in a tab. r=silver@warwickcompsoc.co.uk (James Ross), a=NPOTFFB.

git-svn-id: svn://10.0.0.236/trunk@258574 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gijskruitbosch%gmail.com
2009-10-03 21:20:49 +00:00
parent 0a274fb7ff
commit 15215a19ec

View File

@@ -567,7 +567,8 @@ function onWindowKeyPress(e)
case 34: /* Page Down */
// Control-Page Up => previous tab (all platforms)
// Control-Page Down => next tab (all platforms)
if (e.ctrlKey && !e.altKey && !e.metaKey && !e.shiftKey)
if ((e.ctrlKey && !e.altKey && !e.metaKey && !e.shiftKey) ||
(e.altKey && !e.ctrlKey && !e.metaKey && !e.shiftKey))
{
cycleView(2 * code - 67);
e.preventDefault();