Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record escape key #46

Closed
nrbrook opened this issue Sep 9, 2015 · 2 comments
Closed

Record escape key #46

nrbrook opened this issue Sep 9, 2015 · 2 comments

Comments

@nrbrook
Copy link

nrbrook commented Sep 9, 2015

Is there a way to record the escape key without a modifier? Thanks

@Kentzo
Copy link
Owner

Kentzo commented Sep 10, 2015

Certain shortcuts are reserved by system. ShortcutRecorder uses old Carbon method to retrieve all such shortcuts (CopySymbolicHotKeys) and enumerate through them.

If match is found, error is reported.

In other hand, you can always disable this by adopting SRValidatorDelegate and implementing shortcutValidatorShouldCheckSystemShortcuts. Or you can subclass SRValidator itself.

@nrbrook
Copy link
Author

nrbrook commented Nov 12, 2015

It turns out there is a method to set this on SRRecorderControl, -setAllowsEscapeToCancelRecording:, and also -setAllowsDeleteToClearShortcutAndEndRecording:, which I was setting to YES and had forgotten about.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants