Bug 364845 - ctrl-shift-pageup/down should move current tab left/right. r=gavin

This commit is contained in:
Marius Gedminas 2013-01-06 22:24:13 -05:00
parent 7e998e021f
commit 879feba6c5

View File

@ -2533,6 +2533,21 @@
if (aEvent.altKey)
return;
if (aEvent.ctrlKey && aEvent.shiftKey && !aEvent.metaKey) {
switch (aEvent.keyCode) {
case aEvent.DOM_VK_PAGE_UP:
this.moveTabBackward();
aEvent.stopPropagation();
aEvent.preventDefault();
return;
case aEvent.DOM_VK_PAGE_DOWN:
this.moveTabForward();
aEvent.stopPropagation();
aEvent.preventDefault();
return;
}
}
// We need to take care of FAYT-watching as long as the findbar
// isn't initialized. The checks on aEvent are copied from
// _shouldFastFind (see findbar.xml).