mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 244692: Tabs bar, status bar, Download Manager, Extensions Manager and Themes Manager respond to all kinds of double-click (left, middle, right mouse buttons). r=ben
This commit is contained in:
parent
d6e58683ba
commit
599c0fd78e
@ -86,7 +86,7 @@
|
||||
ondragdrop="nsDragAndDrop.drop(event, this.parentNode.parentNode.parentNode);
|
||||
event.stopPropagation();"
|
||||
xbl:inherits="onnewtab"
|
||||
ondblclick="if (event.originalTarget.localName != 'tab') this.parentNode.parentNode.parentNode.selectedTab = this.parentNode.parentNode.parentNode.addTab();"
|
||||
ondblclick="this.parentNode.parentNode.parentNode.onTabBarDblClick(event);"
|
||||
onclosetab="var node = this.parentNode;
|
||||
while (node.localName != 'tabbrowser')
|
||||
node = node.parentNode;
|
||||
@ -983,6 +983,16 @@
|
||||
</body>
|
||||
</method>
|
||||
|
||||
<method name="onTabBarDblClick">
|
||||
<parameter name="aEvent"/>
|
||||
<body>
|
||||
<![CDATA[
|
||||
if (aEvent.originalTarget.localName != 'tab' && aEvent.button == 0)
|
||||
this.selectedTab = this.addTab();
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
|
||||
<method name="addProgressListener">
|
||||
<parameter name="aListener"/>
|
||||
<parameter name="aMask"/>
|
||||
|
Loading…
Reference in New Issue
Block a user