Hi,

I'm interested in implementing customizable hot keys for pdf page  
motions and zoom actions.

I've already implemented this for another project, and I think with  
some minor modifications, it could be dropped right into Skim.  It  
works as follows;

I have an object which contains all the information about the hot  
keys, and interacts with the user defaults via the key "Shortcuts".   
There should only be one of these objects in the application.  It is  
capable of returning string descriptions of the shortcuts (such as  
Command-Shift-D, with symbols for the modifier keys).  This is useful  
for displaying the keys in a preferences window.

Then, in a subclass of PDFView, I have a custom performKeyEquivalent  
method, which interacts with the object containing information about  
the hot keys. I note that the subclass of PDFView used by Skim does  
not change this method, so that my version could be dropped in  
directly.  The custom method tells the PDFView what to do by sending  
it keydown messages.

Additionally, I have a hacky way to set hotkeys, using a subclass of  
NSPanel to capture the new key.  This would probably need to be  
changed, since you can set any combination, including those in use by  
the menu items.

So, the thing is, I don't have any experience using SVN, so I don't  
know how to contribute the changes.  Additionally, I don't want to  
break anything, and I'd appreciate some assistance integrating my  
classes into Skim.

To see the program currently using the hotkey implementation, please  
visit http://www.twistedtheorysoftware.com/maclit

Josh




-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
skim-app-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-develop

Reply via email to