Prevent keyboard navigation from within input elements in shared visualizations.

This commit is contained in:
Jeremy Goecks
2011-07-21 14:37:25 -04:00
parent ede957f36c
commit 76ef9d0a5f
+5
View File
@@ -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: