salesforce lightning detect key code example
Example: salesforce lightning detect key
window.addEventListener("keydown", function(event) {
alert("key: " + event.key + ", code: " + event.code);
}, true);
window.addEventListener("keydown", function(event) {
alert("key: " + event.key + ", code: " + event.code);
}, true);