aboutsummaryrefslogtreecommitdiffstats
path: root/additional_search_hotkey/init.php
blob: 5bbf4ca821ddf4db28521bffeb2578e9b7060e1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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;
	}

}

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