From f8d96543de36dd2d9a223fd017b6c5f671ff3e6a Mon Sep 17 00:00:00 2001 From: Nathan Warner Date: Sat, 30 May 2020 22:45:41 -0600 Subject: Created hotkeys_force_top plugin Renamed swap_jk to match new naming scheme. --- plugins/hotkeys_swap_jk/init.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 plugins/hotkeys_swap_jk/init.php (limited to 'plugins/hotkeys_swap_jk') diff --git a/plugins/hotkeys_swap_jk/init.php b/plugins/hotkeys_swap_jk/init.php new file mode 100644 index 000000000..b1e3dbe04 --- /dev/null +++ b/plugins/hotkeys_swap_jk/init.php @@ -0,0 +1,30 @@ +host = $host; + + $host->add_hook($host::HOOK_HOTKEY_MAP, $this); + } + + function hook_hotkey_map($hotkeys) { + + $hotkeys["j"] = "next_feed"; + $hotkeys["k"] = "prev_feed"; + + return $hotkeys; + } + + function api_version() { + return 2; + } + +} -- cgit v1.2.3-54-g00ecf