goodlancer-org / typer-miner

Typing tutor for Hebrew language
0 stars 0 forks source link

Test. 'Enter' button fix #13

Open melofon opened 5 months ago

melofon commented 5 months ago

'Enter' button doesn' work on the 'Test' screen, because of it doesn't return correct (10) code when pressed. It can be fixed by specifically checking if the 'Enter' button pressed.

Something sort of:

            var pressed_key = char(event.unicode)
            if event.keycode == KEY_ENTER:
                pressed_key = char(10)
            if pressed_key == text[chars_entered]: