|
|
@ -1222,40 +1222,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
function get_hotkeys_map() {
|
|
|
|
function get_hotkeys_map() {
|
|
|
|
$hotkeys = array(
|
|
|
|
$hotkeys = array(
|
|
|
|
// "navigation" => array(
|
|
|
|
|
|
|
|
"k" => "next_feed",
|
|
|
|
"k" => "next_feed",
|
|
|
|
"j" => "prev_feed",
|
|
|
|
"j" => "prev_feed",
|
|
|
|
"n" => "next_article",
|
|
|
|
"n" => "next_article",
|
|
|
|
"p" => "prev_article",
|
|
|
|
"p" => "prev_article",
|
|
|
|
"(38)|up" => "prev_article",
|
|
|
|
"(38)|Up" => "prev_article",
|
|
|
|
"(40)|down" => "next_article",
|
|
|
|
"(40)|Down" => "next_article",
|
|
|
|
// "^(38)|Ctrl-up" => "prev_article_noscroll",
|
|
|
|
"*(38)|Shift+Up" => "article_scroll_up",
|
|
|
|
// "^(40)|Ctrl-down" => "next_article_noscroll",
|
|
|
|
"*(40)|Shift+Down" => "article_scroll_down",
|
|
|
|
"(191)|/" => "search_dialog",
|
|
|
|
"^(38)|Ctrl+Up" => "prev_article_noscroll",
|
|
|
|
// "article" => array(
|
|
|
|
"^(40)|Ctrl+Down" => "next_article_noscroll",
|
|
|
|
|
|
|
|
"/" => "search_dialog",
|
|
|
|
"s" => "toggle_mark",
|
|
|
|
"s" => "toggle_mark",
|
|
|
|
"*s" => "toggle_publ",
|
|
|
|
"S" => "toggle_publ",
|
|
|
|
"u" => "toggle_unread",
|
|
|
|
"u" => "toggle_unread",
|
|
|
|
"*t" => "edit_tags",
|
|
|
|
"T" => "edit_tags",
|
|
|
|
"o" => "open_in_new_window",
|
|
|
|
"o" => "open_in_new_window",
|
|
|
|
"c p" => "catchup_below",
|
|
|
|
"c p" => "catchup_below",
|
|
|
|
"c n" => "catchup_above",
|
|
|
|
"c n" => "catchup_above",
|
|
|
|
"*n" => "article_scroll_down",
|
|
|
|
"N" => "article_scroll_down",
|
|
|
|
"*p" => "article_scroll_up",
|
|
|
|
"P" => "article_scroll_up",
|
|
|
|
"*(38)|Shift+up" => "article_scroll_up",
|
|
|
|
"a W" => "toggle_widescreen",
|
|
|
|
"*(40)|Shift+down" => "article_scroll_down",
|
|
|
|
|
|
|
|
"a *w" => "toggle_widescreen",
|
|
|
|
|
|
|
|
"a e" => "toggle_embed_original",
|
|
|
|
"a e" => "toggle_embed_original",
|
|
|
|
"e" => "email_article",
|
|
|
|
"e" => "email_article",
|
|
|
|
"a q" => "close_article",
|
|
|
|
"a q" => "close_article",
|
|
|
|
// "article_selection" => array(
|
|
|
|
|
|
|
|
"a a" => "select_all",
|
|
|
|
"a a" => "select_all",
|
|
|
|
"a u" => "select_unread",
|
|
|
|
"a u" => "select_unread",
|
|
|
|
"a *u" => "select_marked",
|
|
|
|
"a U" => "select_marked",
|
|
|
|
"a p" => "select_published",
|
|
|
|
"a p" => "select_published",
|
|
|
|
"a i" => "select_invert",
|
|
|
|
"a i" => "select_invert",
|
|
|
|
"a n" => "select_none",
|
|
|
|
"a n" => "select_none",
|
|
|
|
// "feed" => array(
|
|
|
|
|
|
|
|
"f r" => "feed_refresh",
|
|
|
|
"f r" => "feed_refresh",
|
|
|
|
"f a" => "feed_unhide_read",
|
|
|
|
"f a" => "feed_unhide_read",
|
|
|
|
"f s" => "feed_subscribe",
|
|
|
|
"f s" => "feed_subscribe",
|
|
|
@ -1263,31 +1259,26 @@
|
|
|
|
"f q" => "feed_catchup",
|
|
|
|
"f q" => "feed_catchup",
|
|
|
|
"f x" => "feed_reverse",
|
|
|
|
"f x" => "feed_reverse",
|
|
|
|
"f g" => "feed_toggle_vgroup",
|
|
|
|
"f g" => "feed_toggle_vgroup",
|
|
|
|
"f *d" => "feed_debug_update",
|
|
|
|
"f D" => "feed_debug_update",
|
|
|
|
"f *g" => "feed_debug_viewfeed",
|
|
|
|
"f G" => "feed_debug_viewfeed",
|
|
|
|
"f *c" => "toggle_combined_mode",
|
|
|
|
"f C" => "toggle_combined_mode",
|
|
|
|
"f c" => "toggle_cdm_expanded",
|
|
|
|
"f c" => "toggle_cdm_expanded",
|
|
|
|
"*q" => "catchup_all",
|
|
|
|
"Q" => "catchup_all",
|
|
|
|
"x" => "cat_toggle_collapse",
|
|
|
|
"x" => "cat_toggle_collapse",
|
|
|
|
// "goto" => array(
|
|
|
|
|
|
|
|
"g a" => "goto_all",
|
|
|
|
"g a" => "goto_all",
|
|
|
|
"g f" => "goto_fresh",
|
|
|
|
"g f" => "goto_fresh",
|
|
|
|
"g s" => "goto_marked",
|
|
|
|
"g s" => "goto_marked",
|
|
|
|
"g p" => "goto_published",
|
|
|
|
"g p" => "goto_published",
|
|
|
|
"g t" => "goto_tagcloud",
|
|
|
|
"g t" => "goto_tagcloud",
|
|
|
|
"g *p" => "goto_prefs",
|
|
|
|
"g P" => "goto_prefs",
|
|
|
|
// "other" => array(
|
|
|
|
|
|
|
|
"r" => "select_article_cursor",
|
|
|
|
"r" => "select_article_cursor",
|
|
|
|
"c l" => "create_label",
|
|
|
|
"c l" => "create_label",
|
|
|
|
"c f" => "create_filter",
|
|
|
|
"c f" => "create_filter",
|
|
|
|
"c s" => "collapse_sidebar",
|
|
|
|
"c s" => "collapse_sidebar",
|
|
|
|
"a *n" => "toggle_night_mode",
|
|
|
|
"a N" => "toggle_night_mode",
|
|
|
|
"^(191)|Ctrl+/" => "help_dialog",
|
|
|
|
"?" => "help_dialog",
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
$hotkeys["^(38)|Ctrl-up"] = "prev_article_noscroll";
|
|
|
|
|
|
|
|
$hotkeys["^(40)|Ctrl-down"] = "next_article_noscroll";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_HOTKEY_MAP) as $plugin) {
|
|
|
|
foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_HOTKEY_MAP) as $plugin) {
|
|
|
|
$hotkeys = $plugin->hook_hotkey_map($hotkeys);
|
|
|
|
$hotkeys = $plugin->hook_hotkey_map($hotkeys);
|
|
|
|
}
|
|
|
|
}
|
|
|
|