Skip to content

Add "Standard keys (force capture)" option to volume control dropdown#1846

Open
shuntagami wants to merge 4 commits intoMonitorControl:mainfrom
shuntagami:feat/force-standard-volume-media-keys
Open

Add "Standard keys (force capture)" option to volume control dropdown#1846
shuntagami wants to merge 4 commits intoMonitorControl:mainfrom
shuntagami:feat/force-standard-volume-media-keys

Conversation

@shuntagami
Copy link
Copy Markdown

@shuntagami shuntagami commented Mar 22, 2026

Summary

  • Add a new KeyboardVolume.mediaForce enum case (tag=4) as a "Standard keys (force capture)" option in the existing Volume control dropdown
  • When selected, MonitorControl always captures standard volume/mute media keys — even when the default audio output device supports native macOS volume control
  • Default behavior remains unchanged: the existing "Standard keyboard volume and mute keys" option still disengages when macOS can control volume natively

Test plan

  • Select "Standard keyboard volume and mute keys" (default), use an output device with native macOS volume control, and verify volume keys are handled by macOS (not MonitorControl)
  • Select "Standard keys (force capture)" and verify volume keys are always captured by MonitorControl regardless of audio device
  • Select "Custom keyboard shortcuts" and verify custom shortcuts work as before
  • Select "Both standard and custom shortcuts" and verify both work
  • Select "Disable keyboard" and verify no keys are captured

Screen Shot

CleanShot 2026-03-22 at 18 10 57@2x

🤖 Generated with Claude Code

Keep the current safety behavior by default, but allow advanced users to force-capture standard volume media keys even when macOS output volume is controllable.

Made-with: Cursor
Expose an explicit UI switch for force-capturing standard volume keys so advanced users can opt in without using hidden defaults commands.

Made-with: Cursor
Keep the new volume-key override toggle visible in Keyboard settings while preserving the opt-in behavior for advanced users.

Made-with: Cursor
@shuntagami
Copy link
Copy Markdown
Author

@waydabber Review plz!

…heckbox

Replace the separate "Force capture standard volume and mute keys" checkbox
with a new "Standard keys (force capture)" option in the existing Volume
control dropdown (KeyboardVolume.mediaForce, tag=4). This integrates the
feature more naturally into the existing UI, avoids removing the helpful
"audio device name override" hint text, and eliminates the forceStandardVolumeMediaKeys
preference key in favor of the enum-based approach.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@shuntagami shuntagami changed the title Add opt-in override for standard volume media keys Add "Standard keys (force capture)" option to volume control dropdown Mar 22, 2026
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.

1 participant