Skip to content

Commit 45ee02c

Browse files
authored
Merge pull request #4082 from davep/escape-windows
Fix the double-detection of `escape` on Windows
2 parents 343893d + da9ab77 commit 45ee02c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
5050
- ID and class validation was too lenient https://github.com/Textualize/textual/issues/3954
5151
- Fixed CSS watcher crash if file becomes unreadable (even temporarily) https://github.com/Textualize/textual/pull/4079
5252
- Fixed display of keys when used in conjunction with other keys https://github.com/Textualize/textual/pull/3050
53+
- Fixed double detection of <kbd>Escape</kbd> on Windows https://github.com/Textualize/textual/issues/4038
5354

5455
## [0.47.1] - 2023-01-05
5556

src/textual/drivers/win32.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def run(self) -> None:
264264
# Key event, store unicode char in keys list
265265
key_event = input_record.Event.KeyEvent
266266
key = key_event.uChar.UnicodeChar
267-
if key_event.bKeyDown or key == "\x1b":
267+
if key_event.bKeyDown:
268268
if (
269269
key_event.dwControlKeyState
270270
and key_event.wVirtualKeyCode == 0

0 commit comments

Comments
 (0)