зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1408572 - Remove handleCtrlPageUpDown attribute and associated code;r=dao
MozReview-Commit-ID: KVYtl2UMYVB --HG-- extra : rebase_source : 7e833b70e837ca0cb56c3fd2213f9a3bd3b33403
This commit is contained in:
Родитель
0a7ee1f0e0
Коммит
173ca9a2fc
|
@ -18,7 +18,7 @@
|
|||
|
||||
<content>
|
||||
<xul:tabbox anonid="tabbox" class="tabbrowser-tabbox"
|
||||
flex="1" eventnode="document" xbl:inherits="handleCtrlPageUpDown,tabcontainer"
|
||||
flex="1" eventnode="document" xbl:inherits="tabcontainer"
|
||||
onselect="if (event.target.localName == 'tabpanels') this.parentNode.updateCurrentBrowser();">
|
||||
<xul:tabpanels flex="1" class="plain" selectedIndex="0" anonid="panelcontainer">
|
||||
<xul:notificationbox flex="1" notificationside="top">
|
||||
|
|
|
@ -32,20 +32,6 @@
|
|||
</getter>
|
||||
</property>
|
||||
|
||||
<property name="handleCtrlPageUpDown">
|
||||
<setter>
|
||||
<![CDATA[
|
||||
this.setAttribute("handleCtrlPageUpDown", val);
|
||||
return val;
|
||||
]]>
|
||||
</setter>
|
||||
<getter>
|
||||
<![CDATA[
|
||||
return (this.getAttribute("handleCtrlPageUpDown") != "false");
|
||||
]]>
|
||||
</getter>
|
||||
</property>
|
||||
|
||||
<field name="_handleMetaAltArrows" readonly="true">
|
||||
/Mac/.test(navigator.platform)
|
||||
</field>
|
||||
|
@ -158,18 +144,18 @@
|
|||
}
|
||||
break;
|
||||
case event.DOM_VK_PAGE_UP:
|
||||
if (event.ctrlKey && !event.shiftKey && !event.altKey && !event.metaKey)
|
||||
if (this.tabs && this.handleCtrlPageUpDown) {
|
||||
this.tabs.advanceSelectedTab(-1, true);
|
||||
event.preventDefault();
|
||||
}
|
||||
if (event.ctrlKey && !event.shiftKey && !event.altKey && !event.metaKey &&
|
||||
this.tabs) {
|
||||
this.tabs.advanceSelectedTab(-1, true);
|
||||
event.preventDefault();
|
||||
}
|
||||
break;
|
||||
case event.DOM_VK_PAGE_DOWN:
|
||||
if (event.ctrlKey && !event.shiftKey && !event.altKey && !event.metaKey)
|
||||
if (this.tabs && this.handleCtrlPageUpDown) {
|
||||
this.tabs.advanceSelectedTab(1, true);
|
||||
event.preventDefault();
|
||||
}
|
||||
if (event.ctrlKey && !event.shiftKey && !event.altKey && !event.metaKey &&
|
||||
this.tabs) {
|
||||
this.tabs.advanceSelectedTab(1, true);
|
||||
event.preventDefault();
|
||||
}
|
||||
break;
|
||||
case event.DOM_VK_LEFT:
|
||||
if (event.metaKey && event.altKey && !event.shiftKey && !event.ctrlKey)
|
||||
|
|
Загрузка…
Ссылка в новой задаче