Issue metadata
Sign in to add a comment
|
Keyup events are not executed properly
Reported by
steffenf...@gmail.com,
Aug 10 2017
|
||||||||||||||||||||||
Issue description
UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.78 Safari/537.36
Steps to reproduce the problem:
1. Register an event listener for keydown and keyup for the shift key
2. Press shift
3. Keyup event will never be executed
var shiftDown = false;
var setShiftDown = function(event){
if(event.keyCode === 16 || event.charCode === 16){
window.shiftDown = true;
}
};
var setShiftUp = function(event){
if(event.keyCode === 16 || event.charCode === 16){
window.shiftDown = false;
}
};
window.addEventListener? document.addEventListener('keydown', setShiftDown) : document.attachEvent('keydown', setShiftDown);
window.addEventListener? document.addEventListener('keyup', setShiftUp) : document.attachEvent('keyup', setShiftUp);
setInterval(() => console.log(shiftDown), 1000);
What is the expected behavior?
What went wrong?
This occurs in Chrome as well as in Chromium. Might be related to another library? And it doesn't occur on macOS.
Did this work before? Yes
Chrome version: 60.0.3112.90 Channel: stable
OS Version: Arch Linux
Flash Version:
,
Aug 11 2017
Thanks for your feedback. As I said in my original post, the issue might also be related to a recent library update rather than a Chrome update. I'm not really sure. Which library could this be related to? You can find a screen cast of the issue I'm having attached to this post.
,
Aug 11 2017
Thank you for providing more feedback. Adding requester "susanjuniab@chromium.org" to the cc list and removing "Needs-Feedback" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Aug 11 2017
Unable to reproduce, might be another library that intercepts the events. Try disabling the other ones and see if that helps. |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by susanjuniab@chromium.org
, Aug 11 2017Labels: Needs-Triage-M60 Needs-Feedback
2.4 MB
2.4 MB View Download