Skip to content
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.

hotkey bind fail but return success #97

Open
wangchenyun opened this issue Oct 11, 2016 · 4 comments
Open

hotkey bind fail but return success #97

wangchenyun opened this issue Oct 11, 2016 · 4 comments

Comments

@wangchenyun
Copy link

If shortcut is alread exist by other apps,it will work fail with any information.The api "RegisterEventHotKey" always return ture. Does anything I can do with it?

And it cause a problem that hotkey bind ,in fact it is a failure and can not bind same hotkey again.
so I want to change this block(@Property (nonatomic, copy) void (^shortcutValueChange)(MASShortcutView *sender);),but I can found where is his implementation?

Thank you for giving me the answer.

@shpakovski
Copy link
Collaborator

Hello Wang, thanks a lot for the problem report!

Could you be more specific? Please describe all steps to reproduce this Issue, maybe starting from git clone.

Thanks in advance 👍

@wangchenyun
Copy link
Author

Sorry for my late reply!
While a key (like Cmd+W) is registered as an exclusive key,you can not register a same key exclusive later.
It is ok,but when the first register app has quit,I also can not register the same key.I should unregister the key that I have register fail before and then I can register. This is the way now I handle.
do you have any good ideas to deal with this problem?

@shpakovski
Copy link
Collaborator

I’m very sorry, but please, describe the case step by step. It is still not clear to me what is a problem.

@zoul
Copy link
Collaborator

zoul commented Oct 30, 2016

Same here, unfortunately: I can’t understand the problem clearly enough.

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

No branches or pull requests

3 participants