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

add ESCDELAY environment var #4848

Merged
merged 24 commits into from
Aug 8, 2024
Merged

add ESCDELAY environment var #4848

merged 24 commits into from
Aug 8, 2024

Conversation

willmcgugan
Copy link
Collaborator

@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
Copy link
Contributor

@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.

src/textual/_parser.py Outdated Show resolved Hide resolved
src/textual/_parser.py Outdated Show resolved Hide resolved
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
20 checks passed
@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