]> git.wh0rd.org - tt-rss.git/blobdiff - plugins/googlereaderkeys/init.php
remove $link
[tt-rss.git] / plugins / googlereaderkeys / init.php
index 97133d3058398601bc505ae7a00798d386288fc1..27428a4884ecbf4ab25d62f6fc51baace7db6e80 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 class GoogleReaderKeys extends Plugin {
-
-       private $link;
        private $host;
 
        function about() {
@@ -11,7 +9,6 @@ class GoogleReaderKeys extends Plugin {
        }
 
        function init($host) {
-               $this->link = $host->get_link();
                $this->host = $host;
 
                $host->add_hook($host::HOOK_HOTKEY_MAP, $this);
@@ -21,10 +18,11 @@ class GoogleReaderKeys extends Plugin {
 
                $hotkeys["j"]           = "next_article_noscroll";
                $hotkeys["k"]           = "prev_article_noscroll";
-               $hotkeys["N"]           = "next_feed";
-               $hotkeys["P"]           = "prev_feed";
+               $hotkeys["*n"]          = "next_feed";
+               $hotkeys["*p"]          = "prev_feed";
                $hotkeys["v"]           = "open_in_new_window";
                $hotkeys["r"]           = "feed_refresh";
+               $hotkeys["m"]           = "toggle_unread";
                $hotkeys["(32)|space"]  = "next_article";
                $hotkeys["(38)|up"]     = "article_scroll_up";
                $hotkeys["(40)|down"]   = "article_scroll_down";