add a e hotkey for embed_original
This commit is contained in:
parent
922bfe736f
commit
2ccc7b8e07
|
@ -1896,7 +1896,8 @@
|
||||||
"select_article_cursor" => __("Select article under cursor"),
|
"select_article_cursor" => __("Select article under cursor"),
|
||||||
"email_article" => __("Email article"),
|
"email_article" => __("Email article"),
|
||||||
"close_article" => __("Close/collapse article"),
|
"close_article" => __("Close/collapse article"),
|
||||||
"toggle_widescreen" => __("Toggle widescreen mode")),
|
"toggle_widescreen" => __("Toggle widescreen mode"),
|
||||||
|
"toggle_embed_original" => __("Toggle embed original")),
|
||||||
__("Article selection") => array(
|
__("Article selection") => array(
|
||||||
"select_all" => __("Select all articles"),
|
"select_all" => __("Select all articles"),
|
||||||
"select_unread" => __("Select unread"),
|
"select_unread" => __("Select unread"),
|
||||||
|
@ -1959,6 +1960,7 @@
|
||||||
"*(38)|Shift+up" => "article_scroll_up",
|
"*(38)|Shift+up" => "article_scroll_up",
|
||||||
"*(40)|Shift+down" => "article_scroll_down",
|
"*(40)|Shift+down" => "article_scroll_down",
|
||||||
"a *w" => "toggle_widescreen",
|
"a *w" => "toggle_widescreen",
|
||||||
|
"a e" => "toggle_embed_original",
|
||||||
"e" => "email_article",
|
"e" => "email_article",
|
||||||
"a q" => "close_article",
|
"a q" => "close_article",
|
||||||
// "article_selection" => array(
|
// "article_selection" => array(
|
||||||
|
|
|
@ -786,6 +786,14 @@ function hotkey_handler(e) {
|
||||||
case "collapse_sidebar":
|
case "collapse_sidebar":
|
||||||
collapse_feedlist();
|
collapse_feedlist();
|
||||||
return false;
|
return false;
|
||||||
|
case "toggle_embed_original":
|
||||||
|
if (typeof embedOriginalArticle != "undefined") {
|
||||||
|
if (getActiveArticleId())
|
||||||
|
embedOriginalArticle(getActiveArticleId());
|
||||||
|
} else {
|
||||||
|
alert(__("Please enable embed_original plugin first."));
|
||||||
|
}
|
||||||
|
return false;
|
||||||
case "toggle_widescreen":
|
case "toggle_widescreen":
|
||||||
if (!isCdmMode()) {
|
if (!isCdmMode()) {
|
||||||
_widescreen_mode = !_widescreen_mode;
|
_widescreen_mode = !_widescreen_mode;
|
||||||
|
|
Loading…
Reference in New Issue