bd8c3d3124817d7ec82a33b9f27a9a9d56df8ef4
max
  Fri Aug 5 14:24:37 2016 -0700
hotkey fix, refs #17844

diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c
index d7916a8..af59149 100644
--- src/hg/hgTracks/hgTracks.c
+++ src/hg/hgTracks/hgTracks.c
@@ -9396,36 +9396,36 @@
 // focus
 hPrintf("Mousetrap.bind('/', function() { $('input[name=\"hgt.positionInput\"]').focus(); return false; }, 'keydown'); \n");
 hPrintf("Mousetrap.bind('?', showHotkeyHelp);\n");
 
 // menu
 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");
+hPrintf("Mousetrap.bind('t b', function() { $('#blatMenuLink')[0].click()});\n");
+hPrintf("Mousetrap.bind('t i', function() { $('#ispMenuLink')[0].click()});\n");
+hPrintf("Mousetrap.bind('t t', function() { $('#tableBrowserMenuLink')[0].click()});\n");
+hPrintf("Mousetrap.bind('c r', function() { $('#cartResetMenuLink')[0].click()});\n");
+hPrintf("Mousetrap.bind('s s', function() { $('#sessionsMenuLink')[0].click()});\n");
+hPrintf("Mousetrap.bind('p s', function() { $('#publicSessionsMenuLink')[0].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");