Skip to content

Commit

Permalink
Add magic comment. (#2010)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigogiraoserrao authored Mar 9, 2023
1 parent 503c037 commit 48dbe12
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/textual/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def process_event(self, event: events.Event) -> None:
and not event.button
and self._last_move_event is not None
):
# Deduplicate self._down_buttons while preserving order.
buttons = list(dict.fromkeys(self._down_buttons).keys())
self._down_buttons.clear()
move_event = self._last_move_event
Expand Down

0 comments on commit 48dbe12

Please sign in to comment.