Interactive interface for browsing global, full-resolution satellite imagery
added onKeyDown override
Benjamin8668ad5bd517
diff --git a/web/js/animation/wv.anim.widget.js b/web/js/animation/wv.anim.widget.jsindex 5fe9a63b8..b171450f1 100644--- a/web/js/animation/wv.anim.widget.js+++ b/web/js/animation/wv.anim.widget.js@@ -62,6 +62,13 @@ wv.anim.widget = wv.anim.widget || function(models, config, ui) {model.events.on('change', self.update);model.events.on('timeline-change', self.update);+ //hack for react bug https://github.com/facebook/react/issues/1920+ $('.wv-date-selector-widget input').keydown(function(e) {+ if(e.keyCode == 13 || e.keyCode == 9) {+ e.preventDefault();+ }+ });+};self.update = function() {var state = model.rangeState;