Skip to content

Conversation

@willmcgugan
Copy link
Member

@willmcgugan willmcgugan commented Aug 6, 2024

Fixes #4816

The ESCDELAY env var is the number of milliseconds before registering an escape key. This is borrowed from curses, so may be set in some environments already,

When looking in to this, I discovered that we weren't actually using any delay to detect escape keys. The mechanism to do that had been broken for a while.

@willmcgugan willmcgugan marked this pull request as draft August 6, 2024 14:55
@willmcgugan willmcgugan marked this pull request as ready for review August 7, 2024 15:14
@willmcgugan willmcgugan requested a review from darrenburns August 7, 2024 15:14
Copy link
Collaborator

@TomJGooding TomJGooding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hope you don't mind me sticking my nose in! I just spotted a couple of things glancing through this trying to understand how Textual's key parsing works.

willmcgugan and others added 2 commits August 8, 2024 15:29
Co-authored-by: TomJGooding <101601846+TomJGooding@users.noreply.github.com>
@willmcgugan willmcgugan merged commit b2af20c into main Aug 8, 2024
@willmcgugan willmcgugan deleted the esc-delay branch August 8, 2024 15:17
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.

Escape being detected and processed as keyboard input while hoovering on buttons under heavy load

3 participants