cocoabits / MASShortcut

Modern framework for managing global keyboard shortcuts compatible with Mac App Store. More details:
http://blog.shpakovski.com/2012/07/global-keyboard-shortcuts-in-cocoa.html
BSD 2-Clause "Simplified" License
1.52k stars 220 forks source link

Re-assigning same shortcut triggers it #90

Open radex opened 8 years ago

radex commented 8 years ago
  1. Say I have a hotkey set up with Cmd+Ctrl+T
  2. I focus into the shortcut view
  3. I change my mind, and just want to assign the same thing, so I press Cmd+Ctrl+T

Expected behavior: Cmd+Ctrl+T is assigned, shortcut view blurs

Actual behavior: The shortcut is triggered before the shortcut view can intercept it.

Workaround would be to manually unbind on shortcut view and re-bind after blur.

This is a regression since 1.x :/

zoul commented 8 years ago

I think the easiest solution would be to unbind the shortcut automatically when the recording control gets focused? (By the way, did you know that you can also return back to the previous shortcut by pressing escape?)

radex commented 8 years ago

I think the easiest solution would be to unbind the shortcut automatically when the recording control gets focused?

Probably, yeah!

(By the way, did you know that you can also return back to the previous shortcut by pressing escape?)

Yes ;)