Skip to content

Commit cd65813

Browse files
committed
fix: ignored key event
1 parent 12c77e9 commit cd65813

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/terminal/components/list.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -247,18 +247,10 @@ impl TableServices {
247247
self.sender.send(AppEvent::Action(Actions::ServiceAction(ServiceAction::RefreshAll))).unwrap();
248248
return;
249249
}
250-
KeyCode::Char('v') => {
251-
self.sender.send(AppEvent::Action(Actions::GoLog)).unwrap();
252-
return;
253-
}
254250
KeyCode::Char('f') => {
255251
self.sender.send(AppEvent::Action(Actions::ServiceAction(ServiceAction::ToggleFilter))).unwrap();
256252
return;
257253
}
258-
KeyCode::Char('c') => {
259-
self.sender.send(AppEvent::Action(Actions::GoDetails)).unwrap();
260-
return;
261-
}
262254
KeyCode::Char('m') => {
263255
self.sender.send(AppEvent::Action(Actions::ServiceAction(ServiceAction::ToggleMask))).unwrap();
264256
return;
@@ -276,6 +268,14 @@ impl TableServices {
276268
code if up_keys.contains(&code) => self.select_previous(),
277269
KeyCode::PageDown => self.select_page_down(),
278270
KeyCode::PageUp => self.select_page_up(),
271+
KeyCode::Char('c') => {
272+
self.sender.send(AppEvent::Action(Actions::GoDetails)).unwrap();
273+
return;
274+
}
275+
KeyCode::Char('v') => {
276+
self.sender.send(AppEvent::Action(Actions::GoLog)).unwrap();
277+
return;
278+
}
279279
_ => {}
280280
}
281281
}

0 commit comments

Comments
 (0)