From 1fa13b207301e96614da9458e921f4f53dfab732 Mon Sep 17 00:00:00 2001 From: Radoslav Vitanov Date: Wed, 2 Nov 2016 07:04:24 +0200 Subject: [PATCH] Command+F should close the pulldown on the URL bar Fixes #5340 --- js/stores/windowStore.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/stores/windowStore.js b/js/stores/windowStore.js index 552cbf84df9..7f94661755c 100644 --- a/js/stores/windowStore.js +++ b/js/stores/windowStore.js @@ -384,6 +384,9 @@ const doAction = (action) => { }) break case WindowConstants.WINDOW_SET_FINDBAR_SHOWN: + if (action.shown) { + windowState = windowState.setIn(activeFrameStatePath().concat(['navbar', 'urlbar', 'suggestions', 'shouldRender']), false) + } windowState = windowState.mergeIn(['frames', FrameStateUtil.getFramePropsIndex(windowState.get('frames'), action.frameProps)], { findbarShown: action.shown })