hotkey: Make LinuxHotkeyMgr 'pass' implementations.

We do need to 'implement' them, but it's a all a no-op on Linux.
This commit is contained in:
Athanasius committed 2021-04-12 08:31:48 +01:00
1 parent 9c8714177e
commit 9f1ae40775
1 file changed
+20 -2
+20 -2
View File
@@ -654,9 +654,27 @@ class WindowsHotkeyMgr(AbstractHotkeyMgr):
class LinuxHotKeyMgr(AbstractHotkeyMgr):
"""Hot key management."""
"""
Hot key management.
pass
Not actually implemented on Linux. It's a no-op instead.
"""
def register(self, root, keycode, modifiers) -> None:
"""Register the hotkey handler."""
pass
def unregister(self) -> None:
"""Unregister the hotkey handling."""
pass
def play_good(self) -> None:
"""Play the 'good' sound."""
pass
def play_bad(self) -> None:
"""Play the 'bad' sound."""
pass
def get_hotkeymgr(*args, **kwargs) -> AbstractHotkeyMgr: