keydown/keyup events should be dispatched even during composition (but keypress shouldn't be so)
Categories
(Core :: DOM: Events, enhancement, P2)
Tracking
()
Tracking | Status | |
---|---|---|
blocking-fennec1.0 | --- | - |
People
(Reporter: jennykhan, Assigned: masayuki)
References
Details
(8 keywords, Whiteboard: If you want to catch any edit, you can use "input" event. [webcompat:p3])
Attachments
(4 files)
Updated•18 years ago
|
Assignee | ||
Comment 1•18 years ago
|
||
Assignee | ||
Updated•18 years ago
|
Comment 2•18 years ago
|
||
Comment 3•18 years ago
|
||
Comment 4•18 years ago
|
||
Updated•18 years ago
|
Assignee | ||
Comment 7•16 years ago
|
||
Comment 8•16 years ago
|
||
Comment 9•16 years ago
|
||
Assignee | ||
Comment 10•16 years ago
|
||
Comment 11•16 years ago
|
||
Assignee | ||
Comment 12•16 years ago
|
||
Comment 13•16 years ago
|
||
Comment 14•15 years ago
|
||
Updated•15 years ago
|
Comment 15•15 years ago
|
||
Comment 16•15 years ago
|
||
Comment 17•15 years ago
|
||
Assignee | ||
Comment 18•15 years ago
|
||
Comment 19•15 years ago
|
||
Comment 20•15 years ago
|
||
Comment 21•15 years ago
|
||
Comment 22•15 years ago
|
||
Comment 23•15 years ago
|
||
Assignee | ||
Comment 24•15 years ago
|
||
Comment 25•15 years ago
|
||
Assignee | ||
Comment 26•15 years ago
|
||
Assignee | ||
Updated•14 years ago
|
Comment 27•14 years ago
|
||
Comment 28•14 years ago
|
||
Comment 29•14 years ago
|
||
Comment 30•14 years ago
|
||
Comment 31•14 years ago
|
||
Assignee | ||
Comment 32•14 years ago
|
||
Assignee | ||
Comment 34•13 years ago
|
||
Assignee | ||
Comment 35•13 years ago
|
||
Updated•13 years ago
|
Comment 36•13 years ago
|
||
Comment 37•13 years ago
|
||
Assignee | ||
Comment 38•13 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Assignee | ||
Comment 39•11 years ago
|
||
Comment 40•11 years ago
|
||
Comment 42•9 years ago
|
||
Assignee | ||
Comment 43•9 years ago
|
||
Comment 44•9 years ago
|
||
Comment 45•9 years ago
|
||
Assignee | ||
Comment 46•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Updated•8 years ago
|
Updated•8 years ago
|
Comment 48•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Updated•7 years ago
|
Updated•7 years ago
|
Updated•7 years ago
|
Comment 50•7 years ago
|
||
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 52•6 years ago
|
||
Assignee | ||
Comment 53•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Comment 54•6 years ago
|
||
Comment 55•6 years ago
|
||
I've documented this, by adding a note about it all of the following places:
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/65#APIs
https://developer.mozilla.org/en-US/docs/Web/Events/keyup#Notes
https://developer.mozilla.org/en-US/docs/Web/Events/keydown#Notes
https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onkeyup
https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onkeydown
Does this work for you, or is there anything you feel is missing?
Assignee | ||
Comment 56•6 years ago
|
||
(In reply to Chris Mills (Mozilla, MDN editor) [:cmills] from comment #55)
I've documented this, by adding a note about it all of the following places:
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/65#APIs
Looks good.
https://developer.mozilla.org/en-US/docs/Web/Events/keyup#Notes
Good.
https://developer.mozilla.org/en-US/docs/Web/Events/keydown#Notes
Good.
https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onkeyup
Good.
https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onkeydown
Good.
Does this work for you, or is there anything you feel is missing?
I have no more ideas about the places. If you want to write this issue deeper, my post may be useful:
https://groups.google.com/forum/#!topic/mozilla.dev.platform/oZEz5JH9ZK8/discussion
We set keyCode and key of such keydown/keyup events which have been processed by IME to special values.
And if web apps want to ignore all keydown/keyup events which are part of composition, they should do:
eventTarget.addEventListener("keydown", event => {
if (event.isComposing || event.keyCode === 229) {
return;
}
// do something
});
This should work on any browsers.
Comment 57•6 years ago
|
||
I have no more ideas about the places. If you want to write this issue deeper, my post may be useful:
https://groups.google.com/forum/#!topic/mozilla.dev.platform/oZEz5JH9ZK8/discussion
We set keyCode and key of such keydown/keyup events which have been processed by IME to special values.
And if web apps want to ignore all keydown/keyup events which are part of composition, they should do:
eventTarget.addEventListener("keydown", event => {
if (event.isComposing || event.keyCode === 229) {
return;
}
// do something
});
This should work on any browsers.
I didn't want to add too much more detail in these places, but I have added that code example in, as it's really useful! Thanks for sharing.
Description
•