diff options
author | Andrew Dolgov <[email protected]> | 2017-05-12 08:05:35 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-05-12 08:05:35 +0300 |
commit | 7590f03961012ac946297fc96be9ef2bb4ad3c20 (patch) | |
tree | 432f852f9e5bf065b32fb02077523efa6ce29798 | |
parent | 8f0a59f34a76c00307c685a576d91eee7393b079 (diff) |
feedtree.selectFeed: focus headlines-frame after selection
-rw-r--r-- | index.php | 2 | ||||
-rw-r--r-- | js/FeedTree.js | 5 |
2 files changed, 6 insertions, 1 deletions
@@ -277,7 +277,7 @@ <div id="floatingTitle" style="visibility : hidden"></div> - <div id="headlines-frame" dojoType="dijit.layout.ContentPane" + <div id="headlines-frame" dojoType="dijit.layout.ContentPane" tabindex="0" onscroll="headlines_scroll_handler(this)" region="center"> <div id="headlinesInnerContainer"> <div class="whiteBox"><?php echo __('Loading, please wait...') ?></div> diff --git a/js/FeedTree.js b/js/FeedTree.js index 849700992..63fa308f0 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) { |