Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demix key events from GlobalEventHandlers #16658

Merged
merged 4 commits into from
Jul 9, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions api/Document.json
Original file line number Diff line number Diff line change
Expand Up @@ -4867,7 +4867,10 @@
"__compat": {
"description": "<code>keydown</code> event",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Document/keydown_event",
"spec_url": "https://w3c.github.io/uievents/#event-type-keydown",
"spec_url": [
"https://w3c.github.io/uievents/#event-type-keydown",
"https://html.spec.whatwg.org/multipage/webappapis.html#handler-onkeydown"
],
"support": {
"chrome": {
"version_added": "1"
Expand Down Expand Up @@ -4907,7 +4910,10 @@
"__compat": {
"description": "<code>keypress</code> event",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Document/keypress_event",
"spec_url": "https://w3c.github.io/uievents/#event-type-keypress",
"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",
Expand Down Expand Up @@ -4952,7 +4958,10 @@
"__compat": {
"description": "<code>keyup</code> event",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Document/keyup_event",
"spec_url": "https://w3c.github.io/uievents/#event-type-keyup",
"spec_url": [
"https://w3c.github.io/uievents/#event-type-keyup",
"https://html.spec.whatwg.org/multipage/webappapis.html#handler-onkeyup"
],
"support": {
"chrome": {
"version_added": "1"
Expand Down
117 changes: 0 additions & 117 deletions api/GlobalEventHandlers.json
Original file line number Diff line number Diff line change
Expand Up @@ -1399,123 +1399,6 @@
}
}
},
"onkeydown": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/GlobalEventHandlers/onkeydown",
"spec_url": "https://html.spec.whatwg.org/multipage/webappapis.html#handler-onkeydown",
"support": {
"chrome": {
"version_added": "1"
},
"chrome_android": "mirror",
"edge": {
"version_added": "12"
},
"firefox": {
"version_added": "9"
},
"firefox_android": "mirror",
"ie": {
"version_added": "4"
},
"opera": {
"version_added": "≤12.1"
},
"opera_android": {
"version_added": "≤12.1"
},
"safari": {
"version_added": "1"
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"onkeypress": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/GlobalEventHandlers/onkeypress",
"spec_url": "https://html.spec.whatwg.org/multipage/webappapis.html#handler-onkeypress",
"support": {
"chrome": {
"version_added": "1"
},
"chrome_android": "mirror",
"edge": {
"version_added": "12"
},
"firefox": {
"version_added": "9"
},
"firefox_android": "mirror",
"ie": {
"version_added": "4"
},
"opera": {
"version_added": "≤12.1"
},
"opera_android": {
"version_added": "≤12.1"
},
"safari": {
"version_added": "1"
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": true
}
}
},
"onkeyup": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/GlobalEventHandlers/onkeyup",
"spec_url": "https://html.spec.whatwg.org/multipage/webappapis.html#handler-onkeyup",
"support": {
"chrome": {
"version_added": "1"
},
"chrome_android": "mirror",
"edge": {
"version_added": "12"
},
"firefox": {
"version_added": "9"
},
"firefox_android": "mirror",
"ie": {
"version_added": "4"
},
"opera": {
"version_added": "≤12.1"
},
"opera_android": {
"version_added": "≤12.1"
},
"safari": {
"version_added": "1"
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"onload": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/GlobalEventHandlers/onload",
Expand Down
134 changes: 134 additions & 0 deletions api/HTMLElement.json
Original file line number Diff line number Diff line change
Expand Up @@ -1396,6 +1396,140 @@
}
}
},
"keydown_event": {
"__compat": {
"description": "<code>keydown</code> event",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/HTMLElement/keydown_event",
"spec_url": [
"https://w3c.github.io/uievents/#event-type-keydown",
"https://html.spec.whatwg.org/multipage/webappapis.html#handler-onkeydown"
],
"support": {
"chrome": {
"version_added": "1"
},
"chrome_android": "mirror",
"edge": {
"version_added": "12"
},
"firefox": {
"version_added": "14"
},
"firefox_android": "mirror",
"ie": {
"version_added": "9"
},
"opera": {
"version_added": "11.6"
},
"opera_android": {
"version_added": "12"
},
"safari": {
"version_added": "2"
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"keypress_event": {
"__compat": {
"description": "<code>keypress</code> event",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/HTMLElement/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 <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."
},
"chrome_android": "mirror",
"edge": {
"version_added": "12"
},
"firefox": {
"version_added": "14",
"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)."
},
"firefox_android": "mirror",
"ie": {
"version_added": "9"
},
"opera": {
"version_added": "11.6"
},
"opera_android": {
"version_added": "12"
},
"safari": {
"version_added": "2"
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": {
"version_added": "1",
"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."
}
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": true
}
}
},
"keyup_event": {
"__compat": {
"description": "<code>keyup</code> event",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/HTMLElement/keyup_event",
"spec_url": [
"https://w3c.github.io/uievents/#event-type-keyup",
"https://html.spec.whatwg.org/multipage/webappapis.html#handler-onkeyup"
],
"support": {
"chrome": {
"version_added": "1"
},
"chrome_android": "mirror",
"edge": {
"version_added": "12"
},
"firefox": {
"version_added": "14"
},
"firefox_android": "mirror",
"ie": {
"version_added": "9"
},
"opera": {
"version_added": "11.6"
},
"opera_android": {
"version_added": "12"
},
"safari": {
"version_added": "2"
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"lang": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/HTMLElement/lang",
Expand Down
Loading