]>
Commit | Line | Data |
---|---|---|
e218c5f5 AD |
1 | <?php |
2 | class Swap_JK extends Plugin { | |
3 | ||
4 | private $link; | |
5 | private $host; | |
6 | ||
7 | function about() { | |
8 | return array(1.0, | |
9 | "Swap j and k hotkeys (for vi brethren)", | |
10 | "fox"); | |
11 | } | |
12 | ||
13 | function init($host) { | |
14 | $this->link = $host->get_link(); | |
15 | $this->host = $host; | |
16 | ||
17 | $host->add_hook($host::HOOK_HOTKEY_MAP, $this); | |
18 | } | |
19 | ||
20 | function hook_hotkey_map($hotkeys) { | |
21 | ||
22 | $hotkeys["j"] = "next_feed"; | |
23 | $hotkeys["k"] = "prev_feed"; | |
24 | ||
25 | return $hotkeys; | |
26 | ||
27 | } | |
28 | } | |
29 | ?> |