loading_set_progress(30);
- if (has_local_storage())
+ // can't use cache_clear() here because viewfeed might not have initialized yet
+ if ('sessionStorage' in window && window['sessionStorage'] !== null)
sessionStorage.clear();
console.log("second stage ok");
}
function viewModeChanged() {
- cache_flush();
return viewCurrentFeed('')
}
function viewLimitChanged() {
- cache_flush();
return viewCurrentFeed('')
}
if (!hotkey_prefix) {
+ if (keycode == 27) { // escape
+ closeArticlePanel();
+ return;
+ }
+
if (keycode == 69) { // e
var id = getActiveArticleId();
emailArticle(id);
if ((keycode == 191 || keychar == '?') && shift_key) { // ?
if (!Element.visible("hotkey_help_overlay")) {
- Effect.Appear("hotkey_help_overlay", {duration : 0.3});
+ Effect.Appear("hotkey_help_overlay", {duration : 0.3, to : 0.9});
} else {
Element.hide("hotkey_help_overlay");
}
return false;
}
- if (keycode == 74) { // j
+ if (keycode == 74 && !shift_key) { // j
var rv = dijit.byId("feedTree").getPreviousFeed(
getActiveFeedId(), activeFeedIsCat());