fix(captures): use platform hotkey defaults

This commit is contained in:
Jamie Pine
2026-04-25 10:28:34 -07:00
parent 29f99a8622
commit 2a1bb6f936
8 changed files with 77 additions and 20 deletions
+23
View File
@@ -0,0 +1,23 @@
"""Platform defaults for capture hotkey chords."""
from __future__ import annotations
import sys
MAC_PUSH_TO_TALK = ["MetaRight", "AltGr"]
MAC_TOGGLE_TO_TALK = ["MetaRight", "AltGr", "Space"]
NON_MAC_PUSH_TO_TALK = ["ControlRight", "ShiftRight"]
NON_MAC_TOGGLE_TO_TALK = ["ControlRight", "ShiftRight", "Space"]
def default_push_to_talk_chord() -> list[str]:
if sys.platform == "darwin":
return MAC_PUSH_TO_TALK.copy()
return NON_MAC_PUSH_TO_TALK.copy()
def default_toggle_to_talk_chord() -> list[str]:
if sys.platform == "darwin":
return MAC_TOGGLE_TO_TALK.copy()
return NON_MAC_TOGGLE_TO_TALK.copy()