e.ctrlKey is coming false on keyup event listener
Reported by
akshansh...@gmail.com,
Jul 11 2017
|
|||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Steps to reproduce the problem:
1. Add event listener for keyup:
window.addEventListener("keyup", handleKeyUp)
function handleKeyUp(e)
{
console.log(e.ctrlKey) == > coming false;
console.log(e.keyCode) == > coming 17, which is ctrlKey.
}
2. Press Ctrl Key
3. e.CtrlKey is coming false, but keycode is coming right.
What is the expected behavior?
e.CtrlKey must be true.
What went wrong?
e.CtrlKey is coming false.
Did this work before? No
Chrome version: 59.0.3071.115 Channel: stable
OS Version: 10.0
Flash Version:
,
Jul 12 2017
Thanks ! If it's by w3c spec then my problem is solved.
,
Jul 12 2017
Thank you for providing more feedback. Adding requester "rtoy@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
,
Jul 12 2017
|
|||
►
Sign in to add a comment |
|||
Comment 1 by rtoy@chromium.org
, Jul 11 2017Labels: Needs-Feedback