<?xml version="1.0" encoding="utf-8" ?> <bindings xmlns="http://www.mozilla.org/xbl"> <binding id="numericfield"> <implementation> <constructor> this.keypress = CheckIsDigit ; </constructor> <method name="CheckIsDigit"> <body> <![CDATA[ var iCode = keyCode ; var bAccepted = ( ( iCode >= 48 && iCode <= 57 ) // Numbers || (iCode >= 37 && iCode <= 40) // Arrows || iCode == 8 // Backspace || iCode == 46 // Delete ) ; return bAccepted ; ]]> </body> </method> </implementation> <events> <event type="keypress" value="CheckIsDigit()" /> </events> </binding> </bindings>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
images | Folder | 0755 |
|
|
fck_dialog_common.css | File | 1.43 KB | 0644 |
|
fck_dialog_common.js | File | 3.71 KB | 0644 |
|
fcknumericfield.htc | File | 439 B | 0644 |
|
moz-bindings.xml | File | 691 B | 0644 |
|