/
phprus
/
git.tt-rss.org_fox_ttrss-googlereaderkeys
Обзор
Документация
Войти
/
phprus
/
git.tt-rss.org_fox_ttrss-googlereaderkeys
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
init.php
39 строк
936 B
supahgreg
Fix the space hotkey function reference.
14 окт 2025, 06:25
14 окт 2025, 06:25
f4f6a96
Код
Авторство
О чём код?
<?php class GoogleReaderKeys extends Plugin { function about() { return array(1.0, "Keyboard hotkeys emulate Google Reader", "markwaters"); } function init($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["J"] = "next_unread_feed"; $hotkeys["K"] = "prev_unread_feed"; $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_noscroll"; $hotkeys["(38)|Up"] = "article_scroll_up"; $hotkeys["(40)|Down"] = "article_scroll_down"; return $hotkeys; } function api_version() { return 2; } }