mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-11-21 02:20:48 +08:00
Streamline open wording for issues
This commit is contained in:
+2
-2
@@ -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
@@ -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"),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user