Skip to content
Snippets Groups Projects
Commit d09a64d6 authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

split googlereaderkeys plugin into separate repo

parent 8574532b
No related branches found
No related tags found
No related merge requests found
<?php
class GoogleReaderKeys extends Plugin {
private $host;
function about() {
return array(1.0,
"Keyboard hotkeys emulate Google Reader",
"markwaters");
}
function init($host) {
$this->host = $host;
$host->add_hook($host::HOOK_HOTKEY_MAP, $this);
}
function hook_hotkey_map($hotkeys) {
$hotkeys["j"] = "next_article_noscroll";
$hotkeys["k"] = "prev_article_noscroll";
$hotkeys["N"] = "next_feed";
$hotkeys["P"] = "prev_feed";
$hotkeys["v"] = "open_in_new_window";
$hotkeys["r"] = "feed_refresh";
$hotkeys["m"] = "toggle_unread";
$hotkeys["o"] = "toggle_expand";
$hotkeys["\r|Enter"] = "toggle_expand";
$hotkeys["?"] = "help_dialog";
$hotkeys[" |Space"] = "next_article";
$hotkeys["(38)|Up"] = "article_scroll_up";
$hotkeys["(40)|Down"] = "article_scroll_down";
return $hotkeys;
}
function api_version() {
return 2;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment