commit/galaxy-central: jgoecks: Prevent keyboard navigation from within input elements in shared visualizations.
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/c360836d2c56/ changeset: c360836d2c56 user: jgoecks date: 2011-07-21 20:37:25 summary: Prevent keyboard navigation from within input elements in shared visualizations. affected #: 1 file (187 bytes) --- a/templates/visualization/display.mako Thu Jul 21 14:22:33 2011 -0400 +++ b/templates/visualization/display.mako Thu Jul 21 14:37:25 2011 -0400 @@ -122,6 +122,11 @@ // Keyboard navigation. Scroll ~7% of height when scrolling up/down. // $(document).keydown(function(e) { + // Do not navigate if arrow keys used in input element. + if ($(e.srcElement).is(':input')) { + return; + } + // Key codes: left == 37, up == 38, right == 39, down == 40 switch(e.which) { case 37: Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket