]> git.wh0rd.org Git - tt-rss.git/commitdiff
esc closes article panel
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 11 Nov 2011 11:36:46 +0000 (15:36 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 11 Nov 2011 11:36:46 +0000 (15:36 +0400)
tt-rss.js

index a7716505951b12763f2526c2120853427fe15049..a64bed37412a9cb6c10722a065caad9805eb855f 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -683,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);