Skip to content

Commit

Permalink
Merge pull request #4082 from davep/escape-windows
Browse files Browse the repository at this point in the history
Fix the double-detection of `escape` on Windows
  • Loading branch information
willmcgugan authored Jan 31, 2024
2 parents 343893d + da9ab77 commit 45ee02c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- ID and class validation was too lenient https://github.com/Textualize/textual/issues/3954
- Fixed CSS watcher crash if file becomes unreadable (even temporarily) https://github.com/Textualize/textual/pull/4079
- Fixed display of keys when used in conjunction with other keys https://github.com/Textualize/textual/pull/3050
- Fixed double detection of <kbd>Escape</kbd> on Windows https://github.com/Textualize/textual/issues/4038

## [0.47.1] - 2023-01-05

Expand Down
2 changes: 1 addition & 1 deletion src/textual/drivers/win32.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def run(self) -> None:
# Key event, store unicode char in keys list
key_event = input_record.Event.KeyEvent
key = key_event.uChar.UnicodeChar
if key_event.bKeyDown or key == "\x1b":
if key_event.bKeyDown:
if (
key_event.dwControlKeyState
and key_event.wVirtualKeyCode == 0
Expand Down

0 comments on commit 45ee02c

Please sign in to comment.