]> git.wh0rd.org - tt-rss.git/blobdiff - js/FeedTree.js
feedtree.selectFeed: focus headlines-frame after selection
[tt-rss.git] / js / FeedTree.js
index 84970099202a0b32a42976dc3e16e25a250b924c..63fa308f02f64c4c70f80fa1de39aab98a597477 100644 (file)
@@ -357,6 +357,11 @@ require(["dojo/_base/declare", "dojo/dom-construct", "dijit/Tree", "dijit/Menu"]
                                if (!is_cat) this._expandNode(treeNode);
                                this.set("selectedNodes", [treeNode]);
                                this.focusNode(treeNode);
+
+                               // focus headlines to route key events there
+                               setTimeout(function() {
+                                       $("headlines-frame").focus();
+                               }, 0);
                        }
                },
                setFeedIcon: function(feed, is_cat, src) {