JQuery / DOM event for Chinese input (ibus)?

since we know that many events will be triggered upon input.

like keyup, keydown, keypress or something else.

Will any other event be triggered only when the content in the text box changes? and if not, how to write javasrcipt code to execute this function

+5
source share
2 answers

Perhaps a change event ?

+2
source

, , , node . , , ibus, ibus . , , ibus, keyup which , .

, :

http://jsfiddle.net/lddubeau/jWnL3/

  • .

  • Javascript.

  • "".

  • 2dn "toto".

  • - ibus. , 我.

  • . Chrome 29 , 我 , keyup keydown "w" "o" "3" "1". (, , 1, .) :

    event type: keyup
    which: 229
    keyCode: 229
    charCode: 0
    node value: 
       to我to
    

    , , "keydown" , , node "toto" .

    Firefox 23 :

    "event type:" "keyup"
    "which:" 49
    "keyCode:" 49
    "charCode:" 0
    "node value:" "
        to我to
    "
    

    . ( ascii keydown, keypress keyup .)

, keyCode, , - . , , , , 我.

0

All Articles