feat(mac): add push-to-talk hotkey

This commit is contained in:
Peter Steinberger
2025-12-08 17:23:44 +01:00
parent a34ab1d36e
commit 0317eec10d
7 changed files with 297 additions and 0 deletions

View File

@@ -92,6 +92,12 @@ private struct MenuContent: View {
await self.loadMicrophones(force: true)
}
}
.task {
VoicePushToTalkHotkey.shared.setEnabled(voiceWakeSupported && self.state.voicePushToTalkEnabled)
}
.onChange(of: self.state.voicePushToTalkEnabled) { _, enabled in
VoicePushToTalkHotkey.shared.setEnabled(voiceWakeSupported && enabled)
}
}
private func open(tab: SettingsTab) {