Skip to content

Conversation

@mbriand
Copy link

@mbriand mbriand commented May 3, 2025

Reading input stream can sometimes return a sequence of several key events. This can happen if we have not been reading the input stream for some time, for example if the process was stuck because of a long preview function.

Two modifications are required to handle these key sequences:

  • First we have to split this sequence in atomic keys, taking care of events that might be represented by more than one byte.
  • And next we have to store extra keys for later, so we don't lose any input event.

Fixes #99

Reading input stream can sometimes return a sequence of several key
events. This can happen if we have not been reading the input stream for
some time, for example if the process was stuck because of a long
preview function.

Two modifications are required to handle these key sequences:
- First we have to split this sequence in atomic keys, taking care of
  events that might be represented by more than one byte.
- And next we have to store extra keys for later, so we don't lose any
  input event.

Fixes IngoMeyer441#99

Signed-off-by: Mathieu Dubois-Briand <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant