From 991611bdf4903d34acc48e6da90b5517d40c6242 Mon Sep 17 00:00:00 2001 From: Hubert Boma Manilla Date: Fri, 28 Jul 2017 16:58:37 +0100 Subject: [PATCH] flashing the line that the text was foun on --- src/components/ProjectSearch/TextSearch.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/ProjectSearch/TextSearch.js b/src/components/ProjectSearch/TextSearch.js index 452ecbd9ac..eefa6e663e 100644 --- a/src/components/ProjectSearch/TextSearch.js +++ b/src/components/ProjectSearch/TextSearch.js @@ -31,7 +31,6 @@ export default class TextSearch extends Component { } async onKeyDown(e) { - console.log(e.key); if (e.key !== "Enter") { return; } @@ -50,7 +49,7 @@ export default class TextSearch extends Component { } selectMatchItem(matchItem) { - this.props.selectSource(matchItem.sourceId); + this.props.selectSource(matchItem.sourceId, { line: matchItem.line }); } renderFile(file, focused, expanded, setExpanded) {