feedtree.selectFeed: focus headlines-frame after selection

This commit is contained in:
Andrew Dolgov 2017-05-12 08:05:35 +03:00
parent 8f0a59f34a
commit 7590f03961
2 changed files with 6 additions and 1 deletions

View File

@ -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>

View 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) {