Skip to content

Conversation

gpoitch
Copy link
Contributor

@gpoitch gpoitch commented Jun 15, 2020

Adds ability to register callback when a Recorder view's value is changed/removed.

KeyboardShortcuts.Recorder(for: .doSomething, onChange: { (shortcut: KeyboardShortcuts.Shortcut?) in
  print(shortcut)
})

Closes #11

@gpoitch gpoitch force-pushed the gp/recorder-callback branch from 05a205f to 00222ac Compare June 16, 2020 12:10
@sindresorhus sindresorhus changed the title Add optional callback for Recorder change Add optional change callback to Recorder and RecorderCocoa Jun 17, 2020
@sindresorhus sindresorhus merged commit 5cb615f into sindresorhus:master Jun 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Recorder onChange callback
2 participants