From: Andrew Dolgov Date: Fri, 12 May 2017 05:05:35 +0000 (+0300) Subject: feedtree.selectFeed: focus headlines-frame after selection X-Git-Tag: 17.12~185 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=7590f03961012ac946297fc96be9ef2bb4ad3c20;p=tt-rss.git feedtree.selectFeed: focus headlines-frame after selection --- diff --git a/index.php b/index.php index e4cad9d0..15832aaa 100644 --- a/index.php +++ b/index.php @@ -277,7 +277,7 @@ -
diff --git a/js/FeedTree.js b/js/FeedTree.js index 84970099..63fa308f 100644 --- a/js/FeedTree.js +++ b/js/FeedTree.js @@ -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) {