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 7, 2024
1 parent 012e3b5 commit d12ccb7
Show file tree
Hide file tree
Showing 8 changed files with 109 additions and 10 deletions.
38 changes: 35 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.

30 changes: 30 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.

8 changes: 8 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.

4 changes: 3 additions & 1 deletion Pods/ShortcutRecorder/Library/SRRecorderControl.m

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

32 changes: 27 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 d12ccb7

Please sign in to comment.