<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><div></div><div><br class=""><blockquote type="cite" class=""><div class="">On Mar 27, 2020, at 7:02 AM, James Wagstaff <<a href="mailto:wagstaff.james@gmail.com" class="">wagstaff.james@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Thanks Tom,<div class="">Very helpful - I think(?) I now have it working somewhat usefully by changing a couple of lines (see attached).</div><div class="">The accelerators now mimic clicking the ViewDock radio buttons, but with focus remaining on main window. So, if you start with all compounds "Deleted", and are only showing "Deleted" in the table, then use the accelerators to change selected compound status to either "Viable" or "Purged" the selected compound disappears and you move to the next compound in the table. I couldn't quickly see a way to create a function for directly moving to the next molecule (which would be preferable).</div><div class="">Best,</div><div class="">James</div><div class=""><br class=""></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 26 Mar 2020 at 18:49, Tom Goddard <<a href="mailto:goddard@sonic.net" class="">goddard@sonic.net</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;" class="">Hi James,<div class=""><br class=""></div><div class=""> There are keyboard shortcuts in Chimera but they only work when the main window has the focus. So if you wanted to press the down arrow key to go to the next compound in View Dock and then press a shortcut key to purge it won't work nicely because the View Dock window has to have the focus to get the down arrow key, and the main window needs the focus to get the shortcut key. Probably a different shortcut key could be assigned to go to the next compound but I didn't see how to do it.</div><div class=""><br class=""></div><div class=""> Anyways I used the Chimera Accelerators (menu Tools / General / Keyboard Shortcuts)</div><div class=""><br class=""></div><div class=""><a href="https://www.cgl.ucsf.edu/chimera/current/docs/ContributedSoftware/accelerators/accelerators.html#adding" target="_blank" class="">https://www.cgl.ucsf.edu/chimera/current/docs/ContributedSoftware/accelerators/accelerators.html#adding</a></div><div class=""><br class=""></div><div class="">to add purge (cp), delete (cd), and viable (cv) shortcuts before I found out it won't work well so here. It needed some magic Python code and I attach it here in case you want to pursue it further.</div><div class=""><br class=""></div><div class=""> Maybe the shortcuts could be done in the newer ChimeraX with ViewDockX -- it allows assigning function keys.</div><div class=""><br class=""></div><div class=""><span style="white-space:pre-wrap" class=""> </span>Tom</div><div class=""><br class=""></div><div class=""></div></div><div style="overflow-wrap: break-word;" class=""><div class=""></div><div class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On Mar 26, 2020, at 10:39 AM, James Wagstaff <<a href="mailto:wagstaff.james@gmail.com" target="_blank" class="">wagstaff.james@gmail.com</a>> wrote:</div><br class=""><div class=""><div dir="ltr" class="">Hi all<div class="">I am using the DockView extensions to inspect outputs of a virtual screen, and would like to use a keyboard shortcut to (re)assign the state of the currently selected compound. I am not familiar with the inner workings of Chimera so cannot easily see how to do this myself - I am hoping someone else has implemented this!</div><div class="">Best</div><div class="">James<br class=""><div class=""><div class=""><br class=""></div>-- <br class=""><div dir="ltr" class="">James Wagstaff<br class=""><br class=""><div class="">+447910113349</div></div></div></div></div>
_______________________________________________<br class="">Chimera-users mailing list: <a href="mailto:Chimera-users@cgl.ucsf.edu" target="_blank" class="">Chimera-users@cgl.ucsf.edu</a><br class="">Manage subscription: <a href="http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users" target="_blank" class="">http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users</a><br class=""></div></blockquote></div><br class=""></div></div></blockquote></div><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div dir="ltr" class="gmail_signature">James Wagstaff<br class=""><br class=""><div class="">+447910113349</div></div>
<span id="cid:f_k8a5lsfv0"><vdock_accel.py></span>_______________________________________________<br class="">Chimera-users mailing list: <a href="mailto:Chimera-users@cgl.ucsf.edu" class="">Chimera-users@cgl.ucsf.edu</a><br class="">Manage subscription: <a href="http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users" class="">http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users</a><br class=""></div></blockquote></div><br class=""></div></body></html>