Streamline open wording for issues

This commit is contained in:
Erik Kundt
2023-08-22 13:29:11 +02:00
parent 39cbd15919
commit 391d439e26
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -88,7 +88,7 @@ impl tuirealm::Component<Message, NoUserEvent> for Widget<issue::LargeList> {
code: Key::Enter, ..
}) => Some(Message::Issue(IssueMessage::Focus(IssueCid::Details))),
Event::Keyboard(KeyEvent {
code: Key::Char('n'),
code: Key::Char('o'),
..
}) => Some(Message::Issue(IssueMessage::OpenForm)),
_ => None,
@@ -307,7 +307,7 @@ impl tuirealm::Component<Message, NoUserEvent> for Widget<IssueBrowser> {
Some(Message::Tick)
}
Event::Keyboard(KeyEvent {
code: Key::Char('n'),
code: Key::Char('o'),
..
}) => {
let id = submit();
+2 -2
View File
@@ -109,7 +109,7 @@ impl HomeView {
widget::common::shortcut(theme, "tab", "section"),
widget::common::shortcut(theme, "↑/↓", "navigate"),
widget::common::shortcut(theme, "enter", "show"),
widget::common::shortcut(theme, "n", "new issue"),
widget::common::shortcut(theme, "o", "open"),
widget::common::shortcut(theme, "q", "quit"),
],
),
@@ -346,7 +346,7 @@ impl IssuePage {
widget::common::shortcut(theme, "esc", "back"),
widget::common::shortcut(theme, "↑/↓", "navigate"),
widget::common::shortcut(theme, "enter", "show"),
widget::common::shortcut(theme, "n", "new issue"),
widget::common::shortcut(theme, "o", "open"),
widget::common::shortcut(theme, "q", "quit"),
],
),
+1 -1
View File
@@ -408,6 +408,6 @@ pub fn description_context(
}
pub fn form_context(_context: &Context, theme: &Theme, progress: Progress) -> Widget<ContextBar> {
common::context::bar(theme, "Edit", "", "", "", &progress.to_string())
common::context::bar(theme, "Open", "", "", "", &progress.to_string())
.custom(ContextBar::PROP_EDIT_MODE, AttrValue::Flag(true))
}