MASShortcut icon indicating copy to clipboard operation
MASShortcut copied to clipboard

hotkey bind fail but return success

Open wangchenyun opened this issue 9 years ago • 4 comments

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.

wangchenyun avatar Oct 11 '16 06:10 wangchenyun

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 👍

shpakovski avatar Oct 13 '16 15:10 shpakovski

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?

wangchenyun avatar Oct 18 '16 11:10 wangchenyun

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

shpakovski avatar Oct 29 '16 20:10 shpakovski

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

zoul avatar Oct 30 '16 08:10 zoul