e59b6799cc27952b410f01d92342601a84698177
max
  Wed Nov 18 00:34:59 2015 -0800
adding a keyboard shortcut for the get DNA menu, s t for now, may change
later, refs #16397

diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js
index a0824ae..ad65569 100644
--- src/hg/js/hgTracks.js
+++ src/hg/js/hgTracks.js
@@ -2732,30 +2732,37 @@
             minHeight: 200,
             minWidth: 600,
             maxHeight: popMaxHeight,
             maxWidth: popMaxWidth,
             modal: true,
             closeOnEscape: true,
             autoOpen: false,
             buttons: { "Close": function() {
                     $(this).dialog("close");
             }},
         });
         
         $('#extToolDialog').dialog('open');
 }
 
+// a function for the keyboard shortcut:
+// Jump to the "Get DNA" page
+function gotoGetDnaPage() {
+    var url = "hgc?hgsid="+getHgsid()+"&g=getDna&i=mixed&c="+hgTracks.chromName+"&l="+hgTracks.winStart+"&r="+hgTracks.winEnd+"&db="+getDb();
+    window.location.href = url;
+}
+
   //////////////////////////////////
  //// popup (aka modal dialog) ////
 //////////////////////////////////
 var popUp = {
 
     trackName:            "",
     trackDescriptionOnly: false,
     saveAllVars:          null,
 
     cleanup: function ()
     {  // Clean out the popup box on close
         if ($('#hgTrackUiDialog').html().length > 0 ) {
             // clear out html after close to prevent problems caused by duplicate html elements
             $('#hgTrackUiDialog').html("");
             popUp.trackName = ""; //set to defaults