1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-06-12 13:22:54 +03:00

hotkey/darwin: No need to sys.platform gate within this

And it gets rid of a `pre-commit run --all-files mypy` error.
This commit is contained in:
Athanasius 2022-12-22 13:43:51 +00:00
parent 4041890f39
commit 872ab1b814
No known key found for this signature in database
GPG Key ID: 772697E181BB2767

View File

@ -153,7 +153,6 @@ class MacHotkeyMgr(AbstractHotkeyMgr):
self.keycode = 0
self.modifiers = 0
if sys.platform == 'darwin': # noqa: C901
@objc.callbackFor(NSEvent.addGlobalMonitorForEventsMatchingMask_handler_)
def _handler(self, event) -> None:
# use event.charactersIgnoringModifiers to handle composing characters like Alt-e