New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add keyboard shortcuts to the pref buttons - fixes #527 #785
Conversation
… enabled/disabled state ⌘I Get info ⌘R Refresh ⌘- Remove ⌘+ Add
Haven’t found any issues with this. Has anyone else tried it? Should we assign a shortcut for the “Open Plug-In Help” menu item? Not sure what the convention is for that. |
I've added ⌘?. Only opens the help if it actually exists (same as whether I've also widened the search bars a tad. The plugins one can't be widened On 5 April 2012 21:02, Rob McBroom <
|
I noticed a couple things:
Apart from that, I really like this. |
Interesting. I see the shortcut is set in the .xib for ⌘?, but it doesn't actually work on my keyboard, and perhaps this is also true for @skurfer since he originally suggested this shortcut. Something to look into, but it might be a problem with Lion...
I looked into this for a long time, but couldn't figure out why this was and how to fix it. I hoped nobody would pick up on it, but it is something that should be fixed really |
I've tracked it down: Remove the line
from the method I found another inconsistency between the pref panes: I can dismiss every pref pane with ⎋, except the catalog pref pane. Not really important, but I just noticed it. |
Awesome, thanks Henning!
Thanks a known issue #718. I'll look into it on this pull request. |
(Thanks to HenningJ)
I've looked into #718 and can't for the life of me figure out why it doesn't work. QSWindow.m:sendEvent gets called, but clearly the event doesn't get sent to the NSWindow object (the whole prefs pane) to close it. |
I've looked into it as well. The buttons are at If you remove both of them (or at least clear their KeyEquivalent), it works. |
True. ⌘? does nothing unless I have a plug-in selected. |
Once again, good research Henning! I'll add the changes to this pull On 9 April 2012 13:50, Henning Jungkurth <
|
I've added a commit that removes the two key equivs. I think this pull request is complete now :) |
Looks good. ⎋ dismisses the preferences on the Catalog pane now.
What about the weirdness surrounding On a related note, I suggested adding that shortcut to the “Open Plug-In Help” menu item so users might see it and know it exists. Thoughts? |
(Will fix at a later stage)
I can't seem to figure it out. I've added a commit that effectively reverts the original commit. |
Add keyboard shortcuts to the pref buttons - fixes #527
@skurfer - I've implemented the ⌘⌥? keyboard shortcut, but it appears the 'About Quicksilver' option in the main menu also has this shortcut. I don't see the point of this, so I think that shortcut should be removed. I don't want to make a pull request as it will cause a merge conflict with #681 On a side note: it appears the reason ⌘? doesn't work for us to bring up the plugins prefs is because this is the default shortcut to open the 'help' menu in the menu bar. You only see it if you have QS's dock icon enables (which neither of us do) but it eats up the shortcut so ⌘? doesn't take you to the plugins prefs. Not a big problem, just thought I'd tell you my findings. |
I agree. That isn’t something we need a convenient way to run on a regular basis.
Ah, OK. Thanks for the info. |
These all work for me. :) A side issue - in Plug-ins, selecting a plugin and tabbing to the 'Vers.' column allows text entry. If the text is changed, the field can't be escaped, requiring a QS relaunch to fix. |
Cool, thanks for letting us know Phil. I've fixed that :) On 9 May 2012 22:21, lovequicksilver <
|
This adds ⌘I to the info button, ⌘R to the 'refresh' buttons (where they exist), ⌘- to the 'remove' buttons (where they exist) and ⌘+ to the 'add' menu button (where they exist)
The ⌘+ button brings up the 'add' menu in the catalog and triggers pref panes.
Since I was connecting buttons to iVars, I thought I may as well validate when the buttons are enabled as well.
The 'info' button is only enabled when a single item is clicked in all views. The remove and refresh buttons are disabled when no items are clicked.
For some reason it was not possible to set the key equivalents straight off in Interface Builder, they didn't seem to register, so it had to be done programmatically.