зеркало из https://github.com/mozilla/pjs.git
Bug 299706 - When a tab is focused, cmd+right/left-arrow drags it and goes back/forward. r=mconnor, a=chase.
This commit is contained in:
Родитель
2550dcdc97
Коммит
2a57525bbb
|
@ -1877,10 +1877,14 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (('shiftKey' in aEvent && aEvent.shiftKey) ||
|
||||||
|
('altKey' in aEvent && aEvent.altKey))
|
||||||
|
return;
|
||||||
#ifdef XP_MACOSX
|
#ifdef XP_MACOSX
|
||||||
if ('metaKey' in aEvent && aEvent.metaKey) {
|
if ('metaKey' in aEvent && aEvent.metaKey) {
|
||||||
#else
|
#else
|
||||||
if ('ctrlKey' in aEvent && aEvent.ctrlKey) {
|
if (('ctrlKey' in aEvent && aEvent.ctrlKey) &&
|
||||||
|
!('metaKey' in aEvent && aEvent.metaKey)) {
|
||||||
if (aEvent.keyCode == KeyEvent.DOM_VK_F4 &&
|
if (aEvent.keyCode == KeyEvent.DOM_VK_F4 &&
|
||||||
this.tabbrowser.mTabBox.handleCtrlPageUpDown) {
|
this.tabbrowser.mTabBox.handleCtrlPageUpDown) {
|
||||||
this.tabbrowser.removeCurrentTab();
|
this.tabbrowser.removeCurrentTab();
|
||||||
|
@ -1906,8 +1910,12 @@
|
||||||
this.tabbrowser.moveTabToEnd();
|
this.tabbrowser.moveTabToEnd();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
// Stop the keypress event for the above keyboard
|
||||||
|
// shortcuts only.
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
aEvent.stopPropagation();
|
||||||
|
aEvent.preventDefault();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче