]> git.wh0rd.org - tt-rss.git/blobdiff - tt-rss.js
use css for help overlay, css cleanup
[tt-rss.git] / tt-rss.js
index c8f4ab83e8244bc4e80bd01a3d006036c1915e4c..321a74c176750bca9f68dbf12b919e5354ff9c11 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -330,7 +330,9 @@ function init_second_stage() {
 
                loading_set_progress(30);
 
-               cache_clear();
+               // 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");
 
@@ -681,6 +683,11 @@ function hotkey_handler(e) {
 
                if (!hotkey_prefix) {
 
+                       if (keycode == 27) { // escape
+                               closeArticlePanel();
+                               return;
+                       }
+
                        if (keycode == 69) { // e
                                var id = getActiveArticleId();
                                emailArticle(id);
@@ -688,7 +695,7 @@ function hotkey_handler(e) {
 
                        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");
                                }
@@ -700,7 +707,7 @@ function hotkey_handler(e) {
                                return false;
                        }
 
-                       if (keycode == 74) { // j
+                       if (keycode == 74 && !shift_key) { // j
                                var rv = dijit.byId("feedTree").getPreviousFeed(
                                                getActiveFeedId(), activeFeedIsCat());