Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved Input Queueing #4

Open
Cody-Duncan opened this issue Jun 11, 2017 · 0 comments
Open

Improved Input Queueing #4

Cody-Duncan opened this issue Jun 11, 2017 · 0 comments

Comments

@Cody-Duncan
Copy link
Owner

This supports fast typists.

Fast typists can enter multiple characters into the stream before the browser has time to pick them up.
For example: given かし, the user might get as far as "kas", which fails the input, follwed by "hi", which fails again. This results in two failed characters even though the input was correct.

The fix is to queue input, check for success, the dequeue only the necessary characters. This system should always assume "If it can be shown the user has made an effort to input the correct characters, assume success.".

For example:

  • given か, and the input "aka", assume success because it contains "ka", and wipe the input stream.
  • given かし, and the input "kas", assume success for "ka", and wipe the first two characters of the stream, leaving "s" because it matches the first character of the following "shi".
  • given given かし, and the input "kad", assume success for "ka", and wipe the entire stream because the latter doesn't match the following kana"shi".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant