aboutsummaryrefslogtreecommitdiffstats
path: root/additional_search_hotkey
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2018-09-09 16:07:16 +0200
committerDaniel Lange <DLange@git.local>2018-09-09 16:14:14 +0200
commit12797301e30013d0ab42c0eca97c59a775825ea0 (patch)
treeaec1f25ef47a3e60d6184f5baa0f13935c7a1ad4 /additional_search_hotkey
downloadttrss_additional_search_hotkey-master.tar.gz
ttrss_additional_search_hotkey-master.tar.bz2
ttrss_additional_search_hotkey-master.zip
Initial commit of trivial Tiny Tiny RSS plugin to add search and help hotkeys in addition to / (slash).HEADmaster
Diffstat (limited to 'additional_search_hotkey')
-rw-r--r--additional_search_hotkey/init.php30
1 files changed, 30 insertions, 0 deletions
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 @@
+<?php
+class Additional_Search_Hotkey extends Plugin {
+
+ private $host;
+
+ function about() {
+ return array(1.0,
+ "Make h open the search dialog, too. And H for help.",
+ "DLange/Faster IT GmbH");
+ }
+
+ function init($host) {
+ $this->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

© 2014-2024 Faster IT GmbH | imprint | privacy policy