d4d8f531049ad83078fb6130e3d6a341abb5c97b
jcasper
  Fri Jul 1 16:38:21 2016 -0700
Adding hgTracks keyboard shortcut to Public Sessions CGI, refs #17469

diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c
index b47d0c4..216be7e 100644
--- src/hg/hgTracks/hgTracks.c
+++ src/hg/hgTracks/hgTracks.c
@@ -9386,30 +9386,31 @@
 if (gotExtTools)
     hPrintf("Mousetrap.bind('s t', showExtToolDialog); \n");
 
 // multi-region views
 hPrintf("Mousetrap.bind('e v', function() { window.location.href='%s?%s=%s&virtModeType=exonMostly'; });  \n",
            hgTracksName(), cartSessionVarName(), cartSessionId(cart));
 hPrintf("Mousetrap.bind('d v', function() { window.location.href='%s?%s=%s&virtModeType=default'; });  \n",
            hgTracksName(), cartSessionVarName(), cartSessionId(cart));
 
 // links to a few tools
 hPrintf("Mousetrap.bind('t b', function() { $('#blatMenuLink').click()});\n");
 hPrintf("Mousetrap.bind('t i', function() { $('#ispMenuLink').click()});\n");
 hPrintf("Mousetrap.bind('t t', function() { $('#tableBrowserMenuLink').click()});\n");
 hPrintf("Mousetrap.bind('c r', function() { $('#cartResetMenuLink').click()});\n");
 hPrintf("Mousetrap.bind('s s', function() { $('#sessionsMenuLink').click()});\n");
+hPrintf("Mousetrap.bind('p s', function() { $('#publicSessionsMenuLink').click()});\n");
 
 // also add an entry to the help menu that shows the keyboard shortcut help dialog
 hPrintf("$(document).ready(addKeyboardHelpEntries);");
 
 hPrintf("</script>\n");
 
 // help dialog
 hPrintf("<div style=\"display:none\" id=\"hotkeyHelp\" title=\"Keyboard shortcuts\">\n");
 hPrintf("<table style=\"width:580px; border-color:#666666; border-collapse:collapse\">\n");
 hPrintf("<tr><td style=\"width:18ch\">left 10&#37;</td><td width=\"auto\" class=\"hotkey\">ctrl+j</td>  <td style=\"width:24ch\"> track search</td><td class=\"hotkey\">t then s</td>               </tr>\n"); // percent sign
 hPrintf("<tr><td> left 1/2 screen</td><td class=\"hotkey\">j</td>   <td> default tracks</td><td class=\"hotkey\">d then t</td>             </tr>\n");
 hPrintf("<tr><td> left one screen</td><td class=\"hotkey\">J</td>   <td> default order</td><td class=\"hotkey\">d then o</td>              </tr>\n");
 hPrintf("<tr><td> right 10&#37;</td><td class=\"hotkey\">ctrl+l</td><td> hide all</td><td class=\"hotkey\">h then a</td>                   </tr>\n"); // percent sign
 hPrintf("<tr><td> right 1/2 screen</td><td class=\"hotkey\">l</td>  <td> custom tracks</td><td class=\"hotkey\">c then t</td>              </tr>\n");
 hPrintf("<tr><td> right one screen</td><td class=\"hotkey\">L</td>  <td> track hubs</td><td class=\"hotkey\">t then h</td>                 </tr>\n");