It is not happen "keyPress" event on Safari

It is Keypress event on JavaScript.

It is not happen "keypress" event in Safari with Japanese Input bundled macOS. If your code use "keypress" event as trigger, your code may not action.

It IS happen "keypress" event in Safari with English Input.

So, If you use Safari with Japanese input made by third-party (Google IME, ATOK and so on), it IS happen "keypress" event.


$(function() {
    $(document).on('keydown', '#a', function(e) {
       //happen
    });
    $(document).on('keyup', '#a', function(e) {
      //happen
    });
    $(document).on('keypress', '#a', function(e) {
      //not happen
    });
});
It is not happen "keyPress" event on Safari
 
 
Q