From 12797301e30013d0ab42c0eca97c59a775825ea0 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Sun, 9 Sep 2018 16:07:16 +0200 Subject: Initial commit of trivial Tiny Tiny RSS plugin to add search and help hotkeys in addition to / (slash). --- additional_search_hotkey/init.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 additional_search_hotkey/init.php (limited to 'additional_search_hotkey/init.php') diff --git a/additional_search_hotkey/init.php b/additional_search_hotkey/init.php new file mode 100644 index 0000000..5bbf4ca --- /dev/null +++ b/additional_search_hotkey/init.php @@ -0,0 +1,30 @@ +host = $host; + + $host->add_hook($host::HOOK_HOTKEY_MAP, $this); + } + + function hook_hotkey_map($hotkeys) { + + $hotkeys["h"] = "search_dialog"; + $hotkeys["*h"] = "help_dialog"; + + return $hotkeys; + } + + function api_version() { + return 2; + } + +} \ No newline at end of file -- cgit v1.2.3