Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

prevent spaceboard keypress action for anim widget when location search input is focused

Ed Platoeb31cee5b8c5
diff --git a/web/js/modules/key-press/actions.js b/web/js/modules/key-press/actions.js
index e07dc9b71..a62975950 100644
--- a/web/js/modules/key-press/actions.js
+++ b/web/js/modules/key-press/actions.js
@@ -29,7 +29,8 @@ export default function keyPress(keyCode, shiftKey, ctrlOrCmdKey, isInput) {
type: TOUR_KEY_PRESS_CLOSE,
});
} else if (!isProductPickerOpen) {
- if (animation.isActive) {
+ const isLocationSearchInputFocused = document.activeElement.id === 'location-search-autocomplete';
+ if (animation.isActive && !isLocationSearchInputFocused) {
dispatch({
type: ANIMATION_KEY_PRESS_ACTION,
keyCode,