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