aboutsummaryrefslogtreecommitdiffstats
path: root/additional_search_hotkey/init.php
diff options
context:
space:
mode:
Diffstat (limited to 'additional_search_hotkey/init.php')
-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-2020 Faster IT GmbH | imprint | privacy policy