Skip to content

Commit

Permalink
feat: add function key modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
decodism committed Jul 10, 2024
1 parent 012e3b5 commit 62d948d
Show file tree
Hide file tree
Showing 9 changed files with 147 additions and 11 deletions.
40 changes: 37 additions & 3 deletions Pods/ShortcutRecorder/Library/SRCommon.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions Pods/ShortcutRecorder/Library/SRCommon.m

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Pods/ShortcutRecorder/Library/SRModifierFlagsTransformer.m

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions Pods/ShortcutRecorder/Library/SRRecorderControl.m

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Pods/ShortcutRecorder/Library/SRShortcut.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 58 additions & 5 deletions Pods/ShortcutRecorder/Library/SRShortcut.m

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Pods/ShortcutRecorder/Library/SRShortcutAction.m

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/ui/generic-components/CustomRecorderControl.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Cocoa
import ShortcutRecorder

let allowedModifiers = NSEvent.ModifierFlags(arrayLiteral: [.command, .control, .option, .shift])
let allowedModifiers = NSEvent.ModifierFlags(arrayLiteral: [.command, .control, .option, .shift, .function])

class CustomRecorderControl: RecorderControl, RecorderControlDelegate {
var clearable: Bool!
Expand Down

0 comments on commit 62d948d

Please sign in to comment.