From 86f76c90ab45d20e60cf5521e8dbe05ffc112b24 Mon Sep 17 00:00:00 2001 From: Ursula Sarracini Date: Mon, 20 Jun 2016 13:56:00 -0400 Subject: [PATCH] fix(content): #843 Fix delete key bindings for search --- content-src/components/Search/Search.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/content-src/components/Search/Search.js b/content-src/components/Search/Search.js index c8c3c28074..694bd53565 100644 --- a/content-src/components/Search/Search.js +++ b/content-src/components/Search/Search.js @@ -200,7 +200,12 @@ const Search = React.createClass({ newIndex = -1; numSuggestions--; } - break; + this.setState({ + activeIndex: newIndex, + activeSuggestionIndex: newSuggestionIndex, + activeEngineIndex: newEngineIndex + }); + return; case "Enter": e.preventDefault(); // If the change settings button is selected, fire the action for it.