Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Як в JS вивести у консоль назву натиснутої клавіші?
document.keydown = ()=> { getKey(e).log();};
.
=
()
=>
{
(e).
();
};
onKey("down", (key) => print(key));
(
,
) =>
(key));
keyPress(function() { keyName.print();});
() {
keyName.
});
document.addEventListener("keydown", function(e) { console.log("Keypressed:", e.key);});
) {
, e.
);
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!