Normally when I wanted to catch an event on a page in js:
window.onkeydown = function (event) {
//Do something here
}
I cannot seem to figure out (or Google) how to do this in typescript. For the setup I am working in, there is a ts
file for the page, and a ts
file for the class that it is loading.