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:
parent
4041890f39
commit
872ab1b814
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user