c6cbddabb1c64bda5e814db3057299a3da4158bf max Fri Apr 22 10:06:49 2016 -0700 adding shortcut indicators in light gray to menubar, like in SAA/CUA applications. refs #17212 diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c index ff68e78..6b2ed92 100644 --- src/hg/hgTracks/hgTracks.c +++ src/hg/hgTracks/hgTracks.c @@ -9374,32 +9374,39 @@ // 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"); + // also add an entry to the help menu that shows the keyboard shortcut help dialog -hPrintf("$(document).ready(addKeyboardHelpEntry);"); +hPrintf("$(document).ready(addKeyboardHelpEntries);"); hPrintf("\n"); // help dialog hPrintf("
\n"); hPrintf("\n"); hPrintf("\n"); // percent sign hPrintf("\n"); hPrintf("\n"); hPrintf("\n"); // percent sign hPrintf("\n"); hPrintf("\n"); hPrintf("\n"); hPrintf("\n"); hPrintf("\n");
left 10%ctrl+j track searcht then s
left 1/2 screenj default tracksd then t
left one screenJ default orderd then o
right 10%ctrl+l hide allh then a
right 1/2 screenl custom tracksc then t
right one screenL track hubst then h
zoom in 1.5xctrl+i configurec then f
zoom in 3xi reverser then v
zoom in 10xI resizer then s