]>
git.wh0rd.org - tt-rss.git/blob - plugins/googlereaderkeys/init.php
2 class GoogleReaderKeys
extends Plugin
{
9 "Keyboard hotkeys emulate Google Reader",
13 function init($host) {
14 $this->link
= $host->get_link();
17 $host->add_hook($host::HOOK_HOTKEY_MAP
, $this);
20 function hook_hotkey_map($hotkeys) {
22 $hotkeys["j"] = "next_article_noscroll";
23 $hotkeys["k"] = "prev_article_noscroll";
24 $hotkeys["*n"] = "next_feed";
25 $hotkeys["*p"] = "prev_feed";
26 $hotkeys["v"] = "open_in_new_window";
27 $hotkeys["r"] = "feed_refresh";
28 $hotkeys["(32)|space"] = "next_article";
29 $hotkeys["(38)|up"] = "article_scroll_up";
30 $hotkeys["(40)|down"] = "article_scroll_down";