]> git.wh0rd.org - tt-rss.git/blobdiff - plugins/googlereaderkeys/init.php
googlereaderkeys: add u hotkey
[tt-rss.git] / plugins / googlereaderkeys / init.php
index afdc58ec7674b7a53d3e501e7a05b550d2412851..cf0605cf5a3da7acd8154098b332a0e03c314f67 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);
@@ -26,12 +23,19 @@ class GoogleReaderKeys extends Plugin {
                $hotkeys["v"]           = "open_in_new_window";
                $hotkeys["r"]           = "feed_refresh";
                $hotkeys["m"]           = "toggle_unread";
+               $hotkeys["u"]           = "collapse_sidebar";
+               $hotkeys["o"]           = "toggle_expand";
+               $hotkeys["(13)|enter"]  = "toggle_expand";
+               $hotkeys["*(191)|?"]    = "help_dialog";
                $hotkeys["(32)|space"]  = "next_article";
                $hotkeys["(38)|up"]     = "article_scroll_up";
                $hotkeys["(40)|down"]   = "article_scroll_down";
 
                return $hotkeys;
+       }
 
+       function api_version() {
+               return 2;
        }
-}
-?>
+
+}
\ No newline at end of file