diff options
author | Thang Pham <phamducthang1234@gmail.com> | 2021-03-30 16:44:47 +0900 |
---|---|---|
committer | Thang Pham <phamducthang1234@gmail.com> | 2021-03-30 16:44:47 +0900 |
commit | 6a3e1dfea585401f4172b6860a53b486d114485e (patch) | |
tree | 30f84e9f351ac6f7c8d0f5309b40504a1d9f9934 | |
parent | c51f292dd48ade8a97056a7dc91588969beddc0c (diff) |
minor naming changev0.3.1
-rw-r--r-- | src/view/help_view.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/view/help_view.rs b/src/view/help_view.rs index e5c9037..3fdf442 100644 --- a/src/view/help_view.rs +++ b/src/view/help_view.rs @@ -85,7 +85,7 @@ impl ViewWrapper for HelpView { } #[macro_export] -macro_rules! global_key_shortcuts { +macro_rules! other_key_shortcuts { ($(($k:expr,$d:expr)),*) => { ( "Others", @@ -104,7 +104,7 @@ macro_rules! global_key_shortcuts { pub trait HasHelpView { fn construct_help_view() -> HelpView { - HelpView::new().keys(vec![global_key_shortcuts!()]) + HelpView::new().keys(vec![other_key_shortcuts!()]) } } @@ -140,7 +140,7 @@ impl HasHelpView for StoryView { ("S", "Open in browser the focused story"), ], ), - global_key_shortcuts!(), + other_key_shortcuts!(), ]) } } @@ -177,7 +177,7 @@ impl HasHelpView for CommentView { ), ], ), - global_key_shortcuts!(("r", "Reload the comment view")), + other_key_shortcuts!(("r", "Reload the comment view")), ]) } } @@ -209,7 +209,7 @@ impl HasHelpView for SearchView { ("S", "Open in browser the focused story"), ], ), - global_key_shortcuts!(), + other_key_shortcuts!(), ]) } } |