Closed hatashiro closed 9 years ago
Just found a workaround like below, but not quite sure if it's rightly done.
// swift
func shortcutValueDidChanged(sender: MASShortcutView!) {
if sender.shortcutValue == nil {
resetShortcutBinder()
}
}
func resetShortcutBinder() {
MASShortcutBinder.sharedBinder().breakBindingWithDefaultsKey(shortcutKey!)
MASShortcutBinder.sharedBinder().bindShortcutWithDefaultsKey(shortcutKey!, toAction: selectInput)
}
@zoul Hey Tom, I'm calling for help 😆 Maybe some cleanup needed?
I’m currently offline, will take a look at the issue on Sunday or next week. Since the bug is reproducible, it should be easy to fix.
I think this #71
@noraesae Could you please verify the fix? Thanks in advance.
I've tested the patch and it works like a charm. Thanks!
Thank you all guys!
First of all, thanks for this great job. It really saves a whole lot of my time.
I found a bug that a shortcut stops working after registering the same shortcut as before after cancelling it. This occurs in the demo app too.
Steps to Reproduce
cmd+j
.cmd+j
.Is there any documentation I missed or is this a bug?
Thanks in advance.