Skip to content

Add hotkey hold-to-record delay setting#30

Open
jeffreyrr wants to merge 1 commit intozachlatta:mainfrom
jeffreyrr:main
Open

Add hotkey hold-to-record delay setting#30
jeffreyrr wants to merge 1 commit intozachlatta:mainfrom
jeffreyrr:main

Conversation

@jeffreyrr
Copy link
Copy Markdown

Introduce a configurable hold delay for the push-to-talk hotkey. Adds a new AppState property (hotkeyHoldDelaySeconds) persisted to UserDefaults (key: hotkey_hold_delay_seconds) with values clamped to 0–5 and a default of 1s. Implements a DispatchWorkItem (holdToRecordWorkItem) to start recording only after the configured delay on hotkey down and cancel if released early. Exposes a "Hold delay" settings card with a Picker (0–5 seconds) in SettingsView to allow users to change the delay.

PR to address #29

Introduce a configurable hold delay for the push-to-talk hotkey. Adds a new AppState property (hotkeyHoldDelaySeconds) persisted to UserDefaults (key: hotkey_hold_delay_seconds) with values clamped to 0–5 and a default of 1s. Implements a DispatchWorkItem (holdToRecordWorkItem) to start recording only after the configured delay on hotkey down and cancel if released early. Exposes a "Hold delay" settings card with a Picker (0–5 seconds) in SettingsView to allow users to change the delay.
@zachlatta
Copy link
Copy Markdown
Owner

Can you send a video of this whole new flow working? Thank you!

@zachlatta
Copy link
Copy Markdown
Owner

And I want to say this looks awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants