Results 1 to 4 of 4

Thread: Ext.form.NumberField and Japanese IME input

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    12
    Vote Rating
    0
      0  

    Default Ext.form.NumberField and Japanese IME input

    Hi,

    As a newbie in ExtJS (version 3.2) and Japanese IME, I'm puzzled that I see odd behaviors using Ext.form.NumberField.

    Basically, out of the box Ext.form.NumberField doesn't think numbers in Hiragana mode of IME as valid numeric values, and as soon as I enter numbers they all get cleared out. The odd thing is that numbers on the number pad seem to be treated as numbers fine.

    Can someone please explain me what's going on here and how I could resolve the issue?

    Thanks for your help!

  2. #2
    Sencha - Community Support Team mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,025
    Vote Rating
    1334
      0  

    Default

    There is a maskRe that only allows numbers and periods. This is using RegExp using the baseChars, decimalSeparator and allowNegative configs. Those 3 things, by default, would allow: '0123456789.-'
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    12
    Vote Rating
    0
      0  

    Default

    Hi Mitchell,

    Thanks for your reply. Well, I am aware of what maskRe can do. However, that doesn't make any difference if I type in Hiragana mode of the Microsoft IME. In Hiragana, a full-width mode, I'm able to type numbers but as soon as I stop typing or move out of the field, numbers get cleared.

  4. #4
    Sencha User
    Join Date
    Mar 2013
    Posts
    1
    Vote Rating
    -1
      -1  

    Default imeMode

    var inputField = Ext.create({ xtype: 'textfield' });
    inputField.inputEl.dom.style.imeMode = 'active';

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •