mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Prevent keyboard navigation from within input elements in shared visualizations.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user