Skip to content

Commit 89ba4f2

Browse files
committed
event_queue is no longer a deque
1 parent d3a1698 commit 89ba4f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/_pyrepl/windows_console.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ def get_event(self, block: bool = True) -> Event | None:
460460
key = f"ctrl {key}"
461461
elif key_event.dwControlKeyState & ALT_ACTIVE:
462462
# queue the key, return the meta command
463-
self.event_queue.insert(0, Event(evt="key", data=key, raw=key))
463+
self.event_queue.insert(Event(evt="key", data=key, raw=key))
464464
return Event(evt="key", data="\033") # keymap.py uses this for meta
465465
return Event(evt="key", data=key, raw=key)
466466
if block:
@@ -474,7 +474,7 @@ def get_event(self, block: bool = True) -> Event | None:
474474

475475
if key_event.dwControlKeyState & ALT_ACTIVE:
476476
# queue the key, return the meta command
477-
self.event_queue.insert(0, Event(evt="key", data=key, raw=raw_key))
477+
self.event_queue.insert(Event(evt="key", data=key, raw=raw_key))
478478
return Event(evt="key", data="\033") # keymap.py uses this for meta
479479

480480
return Event(evt="key", data=key, raw=raw_key)

0 commit comments

Comments
 (0)