From 3afc03b5308ab93e811fdeca6fd2a3c54ac8bbd8 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 12 Mar 2013 11:35:41 +0400 Subject: [PATCH] add plugins/googlereaderkeys --- plugins/googlereaderkeys/init.php | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 plugins/googlereaderkeys/init.php diff --git a/plugins/googlereaderkeys/init.php b/plugins/googlereaderkeys/init.php new file mode 100644 index 00000000..76958190 --- /dev/null +++ b/plugins/googlereaderkeys/init.php @@ -0,0 +1,34 @@ +link = $host->get_link(); + $this->host = $host; + + $host->add_hook($host::HOOK_HOTKEY_MAP, $this); + } + + function hook_hotkey_map($hotkeys) { + + $hotkeys["j"] = "next_article_noscroll"; + $hotkeys["N"] = "next_feed"; + $hotkeys["k"] = "prev_article_noscroll"; + $hotkeys["P"] = "prev_feed"; + $hotkeys["v"] = "open_in_new_window"; + $hotkeys["(32)|space"] = "next_article"; + $hotkeys["r"] = "feed_refresh"; + + return $hotkeys; + + } +} +?> -- 2.39.5