showing results for - "javascript e keycode deprecated"
Drew
08 Oct 2017
1// Use e.key instead;
2document.inputDiv.addEventListener('keyup', (e) => {
3	console.log(e.key);
4});
5
6// Typing 'hello world' will log --> 'h' 'e' 'l' 'l' 'o' ' ' 'w' 'o' 'r' 'l' 'd';