148
rated 0 times
[
151]
[
3]
/ answers: 1 / hits: 38544
/ 8 Years ago, fri, july 29, 2016, 12:00:00
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.
More From » typescript