- Forums
- Javascipt
- Snippets List Common Javascript React Ionic Short Codes Notes
This Page Contains information about Snippets List Common Javascript React Ionic Short Codes Notes By edw in category Javascipt with 0 Replies. [5323], Last Updated: Fri Aug 16, 2024
edw
Fri Aug 16, 2024
0 Comments
126 Visits
8/16/2024 - Detect what key is pressed on the keyboard. On Keypress down, it will show you the key board code used for the particular key in the keyboard.
function keyboardKey(e:any) {
e = e || window.addEventListener;
alert(e.keyCode);
}
document.onkeydown = keyboardKey