[polari/wip/kunaljain/polari-search-result-view] resultList: Select First result by Default



commit aa6f3250920485337afe04925c8f106e3d3dd7cb
Author: Kunaal Jain <kunaalus gmail com>
Date:   Sat Jul 30 00:06:36 2016 +0530

    resultList: Select First result by Default

 src/resultList.js |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/resultList.js b/src/resultList.js
index debcfd0..f5bd462 100644
--- a/src/resultList.js
+++ b/src/resultList.js
@@ -304,6 +304,11 @@ const ResultList = new Lang.Class({
             this.add(row);
         }
 
+        if(events.length > 0) {
+            let row = this._widgetMap[events[0].id];
+            this.select_row(row);
+        }
+
         this._showList();
         this._fetchingResults = false;
     },


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]