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

add plugins/googlereaderkeys

parent 0b5ef30d
No related branches found
No related tags found
No related merge requests found
<?php
class GoogleReaderKeys extends Plugin {
private $link;
private $host;
function about() {
return array(1.0,
"Keyboard hotkeys like Google Reader",
"markwaters");
}
function init($host) {
$this->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;
}
}
?>
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