in my separated js file:
function yell(e) {
console.log("yell() ", JSON.stringify(e.value));
console.log("yell() keycode ", e.keyCode, e.key);
if (e.key === 'Enter' || e.keyCode === 13) {
// Do something
}
}
I would like to detect Enter is hit, but the e.key and e.keyCode do not have any value. e.value has the value of textbox which I also need.
So how can I detect user hits Enter?