]> git.wh0rd.org - tt-rss.git/blame - plugins/googlereaderkeys/init.php
add plugins/googlereaderkeys
[tt-rss.git] / plugins / googlereaderkeys / init.php
CommitLineData
3afc03b5
AD
1<?php
2class GoogleReaderKeys extends Plugin {
3
4 private $link;
5 private $host;
6
7 function about() {
8 return array(1.0,
9 "Keyboard hotkeys like Google Reader",
10 "markwaters");
11 }
12
13 function init($host) {
14 $this->link = $host->get_link();
15 $this->host = $host;
16
17 $host->add_hook($host::HOOK_HOTKEY_MAP, $this);
18 }
19
20 function hook_hotkey_map($hotkeys) {
21
22 $hotkeys["j"] = "next_article_noscroll";
23 $hotkeys["N"] = "next_feed";
24 $hotkeys["k"] = "prev_article_noscroll";
25 $hotkeys["P"] = "prev_feed";
26 $hotkeys["v"] = "open_in_new_window";
27 $hotkeys["(32)|space"] = "next_article";
28 $hotkeys["r"] = "feed_refresh";
29
30 return $hotkeys;
31
32 }
33}
34?>