{"description":"<code>keypress</code> event","mdn_url":"https://developer.mozilla.org/docs/Web/API/Element/keypress_event","source_file":"api/Element.json","spec_url":["https://w3c.github.io/uievents/#event-type-keypress","https://html.spec.whatwg.org/multipage/webappapis.html#handler-onkeypress"],"status":{"deprecated":true,"experimental":false,"standard_track":true},"support":{"chrome":{"notes":"Chrome does not fire the <code>keypress</code> event for <a href='https://crbug.com/13891#c50'>known keyboard shortcuts</a>. Which keyboard shortcuts are known depends on the user's system. Use the <code>keydown</code> event to implement keyboard shortcuts.","version_added":"1"},"chrome_android":{"notes":"Chrome does not fire the <code>keypress</code> event for <a href='https://crbug.com/13891#c50'>known keyboard shortcuts</a>. Which keyboard shortcuts are known depends on the user's system. Use the <code>keydown</code> event to implement keyboard shortcuts.","version_added":"18"},"edge":{"version_added":"12"},"firefox":{"notes":"As of Firefox 65, the <code>keypress</code> event is no longer fired for <a href='https://developer.mozilla.org/docs/Web/API/KeyboardEvent/keyCode#Non-printable_keys_(function_keys)'>non-printable keys</a>, except for the Enter key, and the Shift + Enter and Ctrl + Enter key combinations (these were kept for cross-browser compatibility purposes).","version_added":"6"},"firefox_android":{"notes":"As of Firefox 65, the <code>keypress</code> event is no longer fired for <a href='https://developer.mozilla.org/docs/Web/API/KeyboardEvent/keyCode#Non-printable_keys_(function_keys)'>non-printable keys</a>, except for the Enter key, and the Shift + Enter and Ctrl + Enter key combinations (these were kept for cross-browser compatibility purposes).","version_added":"6"},"ie":{"version_added":"9"},"oculus":{"notes":"Chrome does not fire the <code>keypress</code> event for <a href='https://crbug.com/13891#c50'>known keyboard shortcuts</a>. Which keyboard shortcuts are known depends on the user's system. Use the <code>keydown</code> event to implement keyboard shortcuts.","version_added":"5.0"},"opera":{"notes":"Opera does not fire the <code>keypress</code> event for <a href='https://crbug.com/13891#c50'>known keyboard shortcuts</a>. Which keyboard shortcuts are known depends on the user's system. Use the <code>keydown</code> event to implement keyboard shortcuts.","version_added":"≤12.1"},"opera_android":{"notes":"Opera does not fire the <code>keypress</code> event for <a href='https://crbug.com/13891#c50'>known keyboard shortcuts</a>. Which keyboard shortcuts are known depends on the user's system. Use the <code>keydown</code> event to implement keyboard shortcuts.","version_added":"≤12.1"},"safari":{"version_added":"1.3"},"safari_ios":{"version_added":"1"},"samsunginternet_android":{"notes":"Samsung Internet does not fire the <code>keypress</code> event for <a href='https://crbug.com/13891#c50'>known keyboard shortcuts</a>. Which keyboard shortcuts are known depends on the user's system. Use the <code>keydown</code> event to implement keyboard shortcuts.","version_added":"1.0"},"webview_android":{"notes":"Chrome does not fire the <code>keypress</code> event for <a href='https://crbug.com/13891#c50'>known keyboard shortcuts</a>. Which keyboard shortcuts are known depends on the user's system. Use the <code>keydown</code> event to implement keyboard shortcuts.","version_added":"1"}}}