[Chimera-users] keyboard shortcuts

Dougherty, Matthew T matthewd at bcm.edu
Fri Dec 27 16:56:56 PST 2013

I am writing a bunch of USB-HID keyboard shortcuts for some extensions I am writing.

Usually one shortcut per def.  Since my decoding of HID is integrally tied to the extension, I would like to simplify all my shortcuts coming from one device to one def.  

As of now if I have 100 button commands I have to 1) register 100 shortcuts, 2) create 100 defs, 3) do corresponding stuff in my extension.  
I would prefer to call one def that passes the actual keyboard string to my extension, thereby simplifying my user accelerators to just registration.

How do I get the string within my keyboard shortcuts python file?


Matthew Dougherty
National Center for Macromolecular Imaging
Baylor College of Medicine

More information about the Chimera-users mailing list