Add magic comment. (#2010)

Related comment: https://github.com/Textualize/textual/pull/2003\#discussion_r1131081129

Related PR: #2003.
This commit is contained in:
Rodrigo Girão Serrão
2023-03-09 20:55:49 +00:00
committed by GitHub
parent 503c03730e
commit 48dbe1244e

View File

@@ -55,6 +55,7 @@ class Driver(ABC):
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