keyPress

I have this code:


My code is returning one character less than it should.What do I do?

And, How to get the keycode the key for the symbol?

Thanks.

Hi! As for 1st question - it’s known and handled right now,
as for second - you want to get key code for the symbol?

As for second. I want to get key code for the symbol

This is general javascript - you can get code with charCodeAt() function:

console.log("m".charCodeAt(0));

Hi @mikhail-spirin-wix
did Wix resolve this question ?

The following code doesn’t work in the right way, it miss first character
Mauro

export function input1_keyPress(event) {
    $w('#text1').text = $w('#input1').value;    
}

OK I just founded the @yisrael-wix workaround, you have late of 10ms the action,
here the link: