Bug 625780 - textbox[multiline='true'] binding is not working [r=mfinkle]

This commit is contained in:
Vivien Nicolas 2011-01-17 19:58:28 +01:00
parent 16f8a271a5
commit 35e0f8739f
2 changed files with 15 additions and 0 deletions

View File

@ -1629,6 +1629,17 @@
</handlers>
</binding>
<binding id="textarea" extends="chrome://global/content/bindings/textbox.xml#textarea">
<handlers>
<handler event="TapLong" phase="capturing">
<![CDATA[
let box = this.inputField.parentNode;
box.showContextMenu(this, false);
]]>
</handler>
</handlers>
</binding>
<binding id="timed-textbox" extends="chrome://global/content/bindings/textbox.xml#timed-textbox">
<handlers>
<handler event="TapLong" phase="capturing">

View File

@ -244,6 +244,10 @@ textbox {
-moz-binding: url("chrome://browser/content/bindings.xml#textbox");
}
textbox[multiline="true"] {
-moz-binding: url("chrome://browser/content/bindings.xml#textarea");
}
textbox[type="timed"] {
-moz-binding: url("chrome://browser/content/bindings.xml#timed-textbox");
}