Add support for recording only

#225 · closed · 0 comments

View on GitHub ↗

xinnjie

I have a use case that records keybindings and then exports the keybinding configuration to other apps. So I hope to have a new recording view without interacting with UserDefaults, like this: ``` public struct ShortcutRecordView: View { @Binding private var shortcuts: [KeyboardShortcuts.Shortcut] private let option: KeyboardShortcuts.RecorderOption public init( shortcut: Binding<KeyboardShortcuts.Shortcut?>, option: KeyboardShortcuts.RecorderOption = KeyboardShortcuts.RecorderOption() ) ``` And in my use case, multi-chord keybindings like ctrl-k ctrl-s are also needed. I can make a PR if KeyboardShortcuts allows this modification.

Comments