diff --git a/plugins/hotkeys_noscroll/init.php b/plugins/hotkeys_noscroll/init.php new file mode 100644 index 000000000..18f5aedab --- /dev/null +++ b/plugins/hotkeys_noscroll/init.php @@ -0,0 +1,31 @@ +host = $host; + + $host->add_hook($host::HOOK_HOTKEY_MAP, $this); + } + + function hook_hotkey_map($hotkeys) { + + $hotkeys["(40)|down"] = "next_article_noscroll"; + $hotkeys["(38)|up"] = "prev_article_noscroll"; + $hotkeys["n"] = "next_article_noscroll"; + $hotkeys["p"] = "prev_article_noscroll"; + + return $hotkeys; + } + + function api_version() { + return 2; + } + +}