_active_feed_id = id;
_active_feed_is_cat = is_cat;
+ $("headlines-frame").setAttribute("feed-id", id);
+ $("headlines-frame").setAttribute("is-cat", is_cat ? 1 : 0);
+
selectFeed(id, is_cat);
} catch (e) {
exception_error("setActiveFeedId", e);
onComplete: function(transport) {
backend_sanity_check_callback(transport);
} });
-
+
hotkey_actions["next_feed"] = function() {
var rv = dijit.byId("feedTree").getNextFeed(
getActiveFeedId(), activeFeedIsCat());
hotkey_actions["article_scroll_down"] = function() {
var ctr = $("content_insert") ? $("content_insert") : $("headlines-frame");
- scrollArticle(ctr.offsetHeight/3);
+ scrollArticle(40);
};
hotkey_actions["article_scroll_up"] = function() {
var ctr = $("content_insert") ? $("content_insert") : $("headlines-frame");
- scrollArticle(-ctr.offsetHeight/3);
+ scrollArticle(-40);
};
hotkey_actions["close_article"] = function() {
if (isCdmMode()) {
}
var action = hotkey_actions[hotkey_action];
- if(action != null) action();
+
+ if (action != null) {
+ action();
+ return false;
+ }
} catch (e) {
exception_error("hotkey_handler", e);