ã¤ãã³ãã®ãã¼ã³ã¼ãã®åå¾ã«ã¯ event.keyCode event.charCode ã®äºç¨®é¡ããããã ããkeypressã¤ãã³ãã¨keydownã¤ãã³ãã¨ã§åºæ¹ãéããã¨ã«æ°ä»ããã keypressã¨keydownã®è¡¨ãæ°å¤ã¯ä»¥ä¸ã®éã keyCodeã«ã¯ãã¼ã表ãç¹æ®ã³ã¼ãã表ãæ°å¤ã¨ãã¦åºã*1 charCodeã«ã¯ASCIIæåã³ã¼ã表ã«å¯¾å¿ãã10é²æ°ã¨ãã¦åºã 以ä¸ã«å¹¾ã¤ã試ããçµæãæ¸ãã®ã§åèã«ããã ãç¹æ®ãã¼ã«å½ãããããª(ex. windows,ç¡å¤æ, IMEãªã³æã®æå)ãã®ã¯ç°å¢ã«ãã£ã¦ç°ãªããããªã®ã§æ³¨æã keypress ASCIIæåã³ã¼ãã¨ãã¦èªèã§ãããã®ã¯charCodeã«åºã ããã§ãªããã®ã¯keyCodeã«åºã IMEãªã³æã«ã¤ãã³ããæãããã¨ã¯æå¾
ã§ããªã((keyCodeã«229ã§æããæã¨æãããªãæããã£ã)) æ¼ãããã¼ ch
{{#tags}}- {{label}}
{{/tags}}