~ubuntu-branches/ubuntu/precise/moin/precise-updates

« back to all changes in this revision

Viewing changes to wiki/htdocs/applets/FCKeditor/editor/dialog/common/moz-bindings.xml

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2008-11-13 16:45:52 UTC
  • mfrom: (0.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20081113164552-49t6zf2t2o5bqigh
Tags: 1.8.0-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Drop recommendation of python-xml, the packages isn't anymore in
    sys.path.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="utf-8" ?>
2
 
<bindings xmlns="http://www.mozilla.org/xbl">
3
 
        <binding id="numericfield">
4
 
                <implementation>
5
 
                        <constructor>
6
 
                                this.keypress = CheckIsDigit ;
7
 
                        </constructor>
8
 
                        <method name="CheckIsDigit">
9
 
                                <body>
10
 
                                        var iCode = keyCode ;
11
 
 
12
 
                                        var bAccepted =
13
 
                                                (
14
 
                                                        ( iCode >= 48 && iCode <= 57 )          // Numbers
15
 
                                                        || (iCode >= 37 && iCode <= 40)         // Arrows
16
 
                                                        || iCode == 8                                           // Backspace
17
 
                                                        || iCode == 46                                          // Delete
18
 
                                                ) ;
19
 
 
20
 
                                        return bAccepted ;
21
 
                           </body>
22
 
                        </method>
23
 
                </implementation>
24
 
                <events>
25
 
                        <event type="keypress" value="CheckIsDigit()" />
26
 
                </events>
27
 
        </binding>
28
 
</bindings>
 
 
b'\\ No newline at end of file'