I’m trying to implement the content of this tutorial on my website, but the onKeyPress event is missing from my input boxes.
I’ve added code referencing such event but it’s not doing anything.
export function input2_keyPress(event, $w){
// This function was added from the Properties & Events panel. To learn more, visit http://wix.to/UcBnC-4
// Add your code for this event here:
console.log($w("#input2").value);
if (debounceTimer) {
clearTimeout(debounceTimer);
debounceTimer = undefined;
}
debounceTimer = setTimeout(() => {
filter($w('#input2').value);
}, 200);
}