diff --git a/index.js b/index.js index 046bdf5..812145a 100644 --- a/index.js +++ b/index.js @@ -1,14 +1,16 @@ // @ts-check /**@type {HTMLDivElement} */ const h1 = document.querySelector('h1') -h1.innerText='0.1.1' +h1.innerText='0.1.2' const input = document.querySelector('input') const textarea = document.querySelector('textarea') input.addEventListener('keydown', (event) => { - const message = `${event.code} ${event.key}` + const message = `input event +${event.code} ${event.key}` textarea.value = JSON.stringify(message) }) window.addEventListener('keydown', (event) => { - const message = `${event.code} ${event.key}` + const message = `window event +${event.code} ${event.key}` textarea.value = JSON.stringify(message) }) \ No newline at end of file