mirror of https://tt-rss.org/git/tt-rss.git
feedtree.selectFeed: focus headlines-frame after selection
This commit is contained in:
parent
8f0a59f34a
commit
7590f03961
|
@ -277,7 +277,7 @@
|
||||||
|
|
||||||
<div id="floatingTitle" style="visibility : hidden"></div>
|
<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">
|
onscroll="headlines_scroll_handler(this)" region="center">
|
||||||
<div id="headlinesInnerContainer">
|
<div id="headlinesInnerContainer">
|
||||||
<div class="whiteBox"><?php echo __('Loading, please wait...') ?></div>
|
<div class="whiteBox"><?php echo __('Loading, please wait...') ?></div>
|
||||||
|
|
|
@ -357,6 +357,11 @@ require(["dojo/_base/declare", "dojo/dom-construct", "dijit/Tree", "dijit/Menu"]
|
||||||
if (!is_cat) this._expandNode(treeNode);
|
if (!is_cat) this._expandNode(treeNode);
|
||||||
this.set("selectedNodes", [treeNode]);
|
this.set("selectedNodes", [treeNode]);
|
||||||
this.focusNode(treeNode);
|
this.focusNode(treeNode);
|
||||||
|
|
||||||
|
// focus headlines to route key events there
|
||||||
|
setTimeout(function() {
|
||||||
|
$("headlines-frame").focus();
|
||||||
|
}, 0);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
setFeedIcon: function(feed, is_cat, src) {
|
setFeedIcon: function(feed, is_cat, src) {
|
||||||
|
|
Loading…
Reference in New Issue