diff --git a/MonitorControl/AppDelegate.swift b/MonitorControl/AppDelegate.swift
index 06aac1f..a981e3c 100644
--- a/MonitorControl/AppDelegate.swift
+++ b/MonitorControl/AppDelegate.swift
@@ -231,31 +231,29 @@ extension AppDelegate: MediaKeyTapDelegate {
// Introduce a small delay to handle the media key being held down
let delay = isRepeat ? 0.05 : 0
- for display in allDisplays where display.isEnabled {
- switch mediaKey {
- case .brightnessUp, .brightnessDown:
- self.keyRepeatTimers[mediaKey] = Timer.scheduledTimer(withTimeInterval: delay, repeats: false, block: { _ in
+ self.keyRepeatTimers[mediaKey] = Timer.scheduledTimer(withTimeInterval: delay, repeats: false, block: { _ in
+ for display in allDisplays where display.isEnabled {
+ switch mediaKey {
+ case .brightnessUp, .brightnessDown:
display.stepBrightness(isUp: mediaKey == .brightnessUp, isSmallIncrement: isSmallIncrement)
- })
- case .mute:
- // The mute key should not respond to press + hold
- if !isRepeat {
- // mute only matters for external displays
- if let display = display as? ExternalDisplay {
- display.toggleMute()
+ case .mute:
+ // The mute key should not respond to press + hold
+ if !isRepeat {
+ // mute only matters for external displays
+ if let display = display as? ExternalDisplay {
+ display.toggleMute()
+ }
}
- }
- case .volumeUp, .volumeDown:
- // volume only matters for external displays
- if let display = display as? ExternalDisplay {
- self.keyRepeatTimers[mediaKey] = Timer.scheduledTimer(withTimeInterval: delay, repeats: false, block: { _ in
+ case .volumeUp, .volumeDown:
+ // volume only matters for external displays
+ if let display = display as? ExternalDisplay {
display.stepVolume(isUp: mediaKey == .volumeUp, isSmallIncrement: isSmallIncrement)
- })
+ }
+ default:
+ return
}
- default:
- return
}
- }
+ })
}
// MARK: - Prefs notification
diff --git a/MonitorControl/Info.plist b/MonitorControl/Info.plist
index 6389d0e..7051d63 100644
--- a/MonitorControl/Info.plist
+++ b/MonitorControl/Info.plist
@@ -19,7 +19,7 @@
CFBundleShortVersionString
$(MARKETING_VERSION)
CFBundleVersion
- 636
+ 637
LSApplicationCategoryType
public.app-category.utilities
LSMinimumSystemVersion
diff --git a/MonitorControlHelper/Info.plist b/MonitorControlHelper/Info.plist
index b620712..bbf725a 100644
--- a/MonitorControlHelper/Info.plist
+++ b/MonitorControlHelper/Info.plist
@@ -19,7 +19,7 @@
CFBundleShortVersionString
$(MARKETING_VERSION)
CFBundleVersion
- 636
+ 637
LSApplicationCategoryType
public.app-category.utilities
LSBackgroundOnly