mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
Bug 199234 - Ctrl+Shift+Tab and ctrl-pgup don't work on the first tab
r=rginda chatzilla only
This commit is contained in:
parent
f0f727bb67
commit
1bfda01ee4
@ -819,6 +819,8 @@ function cycleView (amount)
|
|||||||
|
|
||||||
var vk = Number(tb.getAttribute("viewKey"));
|
var vk = Number(tb.getAttribute("viewKey"));
|
||||||
var destKey = (vk + amount) % len; /* wrap around */
|
var destKey = (vk + amount) % len; /* wrap around */
|
||||||
|
if (destKey < 0)
|
||||||
|
destKey += len;
|
||||||
|
|
||||||
setCurrentObject (client.viewsArray[destKey].source);
|
setCurrentObject (client.viewsArray[destKey].source);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user