diff --git a/VoiceInk/HotkeyManager.swift b/VoiceInk/HotkeyManager.swift index 16354b7..24b97fa 100644 --- a/VoiceInk/HotkeyManager.swift +++ b/VoiceInk/HotkeyManager.swift @@ -56,6 +56,7 @@ class HotkeyManager: ObservableObject { case rightOption = "rightOption" case leftOption = "leftOption" case leftControl = "leftControl" + case rightControl = "rightControl" case fn = "fn" case rightCommand = "rightCommand" case rightShift = "rightShift" @@ -65,6 +66,7 @@ class HotkeyManager: ObservableObject { case .rightOption: return "Right Option (⌥)" case .leftOption: return "Left Option (⌥)" case .leftControl: return "Left Control (⌃)" + case .rightControl: return "Right Control (⌃)" case .fn: return "Fn" case .rightCommand: return "Right Command (⌘)" case .rightShift: return "Right Shift (⇧)" @@ -76,6 +78,7 @@ class HotkeyManager: ObservableObject { case .rightOption: return 0x3D case .leftOption: return 0x3A case .leftControl: return 0x3B + case .rightControl: return 0x3E case .fn: return 0x3F case .rightCommand: return 0x36 case .rightShift: return 0x3C @@ -87,6 +90,7 @@ class HotkeyManager: ObservableObject { case .rightOption: return .maskAlternate case .leftOption: return .maskAlternate case .leftControl: return .maskControl + case .rightControl: return .maskControl case .fn: return .maskSecondaryFn case .rightCommand: return .maskCommand case .rightShift: return .maskShift diff --git a/VoiceInk/Views/RecordView.swift b/VoiceInk/Views/RecordView.swift index 8f38f45..8e0cd8d 100644 --- a/VoiceInk/Views/RecordView.swift +++ b/VoiceInk/Views/RecordView.swift @@ -179,6 +179,7 @@ struct RecordView: View { case .rightOption: return "⌥" case .leftOption: return "⌥" case .leftControl: return "⌃" + case .rightControl: return "⌃" case .fn: return "Fn" case .rightCommand: return "⌘" case .rightShift: return "⇧" @@ -190,6 +191,7 @@ struct RecordView: View { case .rightOption: return "Right Option" case .leftOption: return "Left Option" case .leftControl: return "Left Control" + case .rightControl: return "Right Control" case .fn: return "Function" case .rightCommand: return "Right Command" case .rightShift: return "Right Shift" @@ -241,6 +243,8 @@ struct RecordView: View { keyName = "left Option (⌥)" case .leftControl: keyName = "left Control (⌃)" + case .rightControl: + keyName = "right Control (⌃)" case .fn: keyName = "Fn" case .rightCommand: diff --git a/VoiceInk/Views/Settings/SettingsView.swift b/VoiceInk/Views/Settings/SettingsView.swift index df9bef0..093ad64 100644 --- a/VoiceInk/Views/Settings/SettingsView.swift +++ b/VoiceInk/Views/Settings/SettingsView.swift @@ -262,6 +262,8 @@ struct SettingsView: View { return "Using Left Option (⌥) key to quickly start recording. Release to stop." case .leftControl: return "Using Left Control (⌃) key to quickly start recording. Release to stop." + case .rightControl: + return "Using Right Control (⌃) key to quickly start recording. Release to stop." case .fn: return "Using Function (Fn) key to quickly start recording. Release to stop." case .rightCommand: @@ -370,6 +372,7 @@ struct PushToTalkKeySelector: View { case .rightOption: return "⌥" case .leftOption: return "⌥" case .leftControl: return "⌃" + case .rightControl: return "⌃" case .fn: return "Fn" case .rightCommand: return "⌘" case .rightShift: return "⇧" @@ -381,6 +384,7 @@ struct PushToTalkKeySelector: View { case .rightOption: return "Right Option" case .leftOption: return "Left Option" case .leftControl: return "Left Control" + case .rightControl: return "Right Control" case .fn: return "Function" case .rightCommand: return "Right Command" case .rightShift: return "Right Shift"