Skip to content

Commit 44ea4b6

Browse files
committed
Upgrade MASShortcut
1 parent 8b41a48 commit 44ea4b6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cartfile.resolved

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
github "nmdias/DefaultsKit" "0.2.0"
2-
github "shpakovski/MASShortcut" "2.3.6"
2+
github "shpakovski/MASShortcut" "2.4.0"

devdocs-macos/PreferencesWindowController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class PreferencesWindowController: NSWindowController {
1414
super.windowDidLoad()
1515

1616
if let recorderView = masShortcutRecorderView {
17-
recorderView.style = MASShortcutViewStyleTexturedRect
17+
recorderView.style = .texturedRect
1818
recorderView.associatedUserDefaultsKey = Summoner.prefsKey
1919
}
2020
}

devdocs-macos/Summoner.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Summoner {
88

99
static var defaultShortcut: MASShortcut {
1010
let modifiers = NSEvent.ModifierFlags([.option])
11-
return MASShortcut(keyCode: UInt(kVK_Space), modifierFlags: modifiers.rawValue)
11+
return MASShortcut(keyCode: kVK_Space, modifierFlags: modifiers)
1212
}
1313

1414
private init() {

0 commit comments

Comments
 (0)