mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
1c316f2591
--HG-- rename : mobile/android/chrome/content/bindings.xml => mobile/android/chrome/content/bindings/menulist.xml
41 lines
1.3 KiB
XML
41 lines
1.3 KiB
XML
<?xml version="1.0"?>
|
|
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
|
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
|
|
|
<bindings
|
|
xmlns="http://www.mozilla.org/xbl"
|
|
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
|
|
|
<binding id="menulist" display="xul:box" extends="chrome://global/content/bindings/menulist.xml#menulist">
|
|
<handlers>
|
|
<handler event="mousedown" phase="capturing">
|
|
<![CDATA[
|
|
// Stop the normal menupopup from appearing
|
|
event.stopPropagation();
|
|
]]>
|
|
</handler>
|
|
|
|
<handler event="click" button="0">
|
|
<![CDATA[
|
|
if (this.disabled || this.itemCount == 0)
|
|
return;
|
|
|
|
this.focus();
|
|
SelectHelper.handleClick(this);
|
|
]]>
|
|
</handler>
|
|
|
|
<handler event="command" phase="capturing">
|
|
<![CDATA[
|
|
// The dropmark (button) fires a command event too. Don't forward that.
|
|
// Just forward the menuitem command events, which the toolkit version does.
|
|
if (event.target.parentNode.parentNode != this)
|
|
event.stopPropagation();
|
|
]]>
|
|
</handler>
|
|
</handlers>
|
|
</binding>
|
|
|
|
</bindings>
|