only bind noscroll hotkeys in combined mode by default

This commit is contained in:
Andrew Dolgov 2013-02-28 20:21:06 +04:00
parent f6a260c65e
commit da15c140f7
1 changed files with 7 additions and 2 deletions

View File

@ -1921,8 +1921,8 @@
"p" => "prev_article",
"(38)|up" => "prev_article",
"(40)|down" => "next_article",
"^(38)|Ctrl-up" => "prev_article_noscroll",
"^(40)|Ctrl-down" => "next_article_noscroll",
// "^(38)|Ctrl-up" => "prev_article_noscroll",
// "^(40)|Ctrl-down" => "next_article_noscroll",
"(191)|/" => "search_dialog",
// "article" => array(
"s" => "toggle_mark",
@ -1971,6 +1971,11 @@
"^(191)|Ctrl+/" => "help_dialog",
);
if (get_pref($link, 'COMBINED_DISPLAY_MODE')) {
$hotkeys["^(38)|Ctrl-up"] = "prev_article_noscroll";
$hotkeys["^(40)|Ctrl-down"] = "next_article_noscroll";
}
global $pluginhost;
foreach ($pluginhost->get_hooks($pluginhost::HOOK_HOTKEY_MAP) as $plugin) {
$hotkeys = $plugin->hook_hotkey_map($hotkeys);