diff --git a/CHANGELOG.md b/CHANGELOG.md index 76006efc24..535ecdfaab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 Escape on Windows https://github.com/Textualize/textual/issues/4038 ## [0.47.1] - 2023-01-05 diff --git a/src/textual/drivers/win32.py b/src/textual/drivers/win32.py index a191cd4d57..bfa4a11fec 100644 --- a/src/textual/drivers/win32.py +++ b/src/textual/drivers/win32.py @@ -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