Skip to content
Prev Previous commit
Next Next commit
Lib/_pyrepl/windows_console.py: temp var ctrlstate is not needed
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
  • Loading branch information
paulie4 and eendebakpt authored Jan 4, 2025
commit 3d07c340979c8712756769c2bc7aeac325e2e2f4
2 changes: 1 addition & 1 deletion Lib/_pyrepl/windows_console.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def get_event(self, block: bool = True) -> Event | None:

return None

if (ctrlstate := key_event.dwControlKeyState) and ctrlstate & ALT_ACTIVE:
if key_event.dwControlKeyState & ALT_ACTIVE:
# first send meta, then send the key
Comment thread
paulie4 marked this conversation as resolved.
Outdated
self.event_queue.insert(0, Event(evt="key", data=key, raw=raw_key))
return Event(evt="key", data="\033") # keymap.py uses this for meta
Comment thread
paulie4 marked this conversation as resolved.
Expand Down