mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-11-21 02:20:48 +08:00
issue: move up / down with 'j' and 'k'
This commit is contained in:
@@ -240,7 +240,7 @@ impl Widget<IssuesState, Action> for Issues {
|
||||
|
||||
fn handle_key_event(&mut self, key: Key) {
|
||||
match key {
|
||||
Key::Up => {
|
||||
Key::Up | Key::Char('k') => {
|
||||
self.table.prev();
|
||||
|
||||
let selected = self
|
||||
@@ -255,7 +255,7 @@ impl Widget<IssuesState, Action> for Issues {
|
||||
});
|
||||
}
|
||||
}
|
||||
Key::Down => {
|
||||
Key::Down | Key::Char('j') => {
|
||||
self.table.next(self.props.issues.len());
|
||||
|
||||
let selected = self
|
||||
|
||||
Reference in New Issue
Block a user