hcp-uw / syntext

website for practicing your typing
5 stars 0 forks source link

snippet completion #54

Closed kaitinderr closed 1 year ago

kaitinderr commented 1 year ago

Currently, the user has to hit enter once they finish typing in order to actually "finish" the snippet and see statistics. This should be changed so they are sent to statistics as soon as they finish typing the snippet, removing the need to hit enter.

karhu1 commented 1 year ago

A way to combat this is to use what we already have written for the enter key handler:

image

Instead of handling it inside of handleSpecialKey, switch it to handleChange but copy over the checkers (minus the enter key). Maybe now create some way to check if we're typing on the last line, and you should be good!

image

elimelt commented 1 year ago

@kaitinderr any updates?

kaitinderr commented 1 year ago

@elimelt completed!