Fix the 'delay' option for hotkey events. #1201
Conversation
I've never used this before, but it wasn't working for me. Also: if the hotkey conditions aren't met (e.g. not long enough delay, no repeats etc.) pass the keypress down to the frontmost app.
If the 'repeat' interval isn't set, don't assume it's 0s! (Show a notif instead) Make sure repeat triggers don't continue ad infinitum. Fixes #583
…some triggers have the same hotkey)
…s are active, pass the keypress down to the next app
|
Meh, I thought that tiny fix was a bit lame. So I did some more :) I've now made it possible to create triggers with the same hotkey, but scoped to different apps :) Now, you can have triggers as follows: ⌃�D Open Downloads (Enabled in Safari) etc. etc. Options are endless :) |
This comment has been minimized.
This comment has been minimized.
|
This commit looks scary. All I did was add a |
|
Well, speaking of the Show Window feature: I just happened to be testing the delay setting on a trigger where I had previously enable Show window, and it turns out that the Show window pref makes it ignore the delay and run immediately (or close to it - if I tap the key quickly, the window starts to zoom in, but the action doesn't run). The same-trigger-in-different-scopes thing is awesome (and seems to work in my testing). A lot of people are going to like that. :-) |
Great :)
Yay, looks like another bug in OS X :) I've kind of gone off the idea of hiding the window after a delay, since On 12 November 2012 19:44, Rob McBroom notifications@github.com wrote:
|
|
Just wanted to mention #914. :-) |
|
Not sure if mention is enough? Do you have to say either closes #914 or I've pushed a couple of commits that fix a few things… going as far as I On 12 November 2012 21:21, Henning Jungkurth notifications@github.comwrote:
|
Either should work in a commit message. Neither will work in these comments. :-) But we can just close it manually when this is merged.
It's an edge case. Best effort is good enough here, I think. |
|
I could have sworn this was working before, and it was. Just did a I have the Increase and Decrease Volume triggers from iTunes set to "On Press" and "Repeat Every 0.2s". Nothing else enabled. They were working as expected prior to that commit, but now, if I use one, the volume just goes up or down forever and Quicksilver becomes unresponsive. |
|
This has been working well for me (as long as I revert the last commit). What problem was it meant to solve? |
Fix the 'delay' option for hotkey events.
I've never used this before, but the 'delay' option wasn't working for me (10.8, that is). Looking at the code, I don't think it should have ever worked :/
Also: if the hotkey conditions aren't met (e.g. not long enough delay, no repeats etc.) pass the keypress down to the frontmost app.
Scenario: I have (like many of us) multi stroke key bindings set up. ⌃M followed by ⌃D gives you the '⌫' key. Handy :)
But I have ⌃D bound to 'Open Downloads folder' as a trigger in Quicksilver.
What I want is to be able to press and hold the ⌃D for 0.5s to open the Downloads folder. Otherwise, send the key press down the line.
… and that's what I've done :)