Skip to content

Commit cca33fd

Browse files
committed
Feat: ctrl + c result page
1 parent 31ada4d commit cca33fd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/views/result_page.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::utils;
2-
use crossterm::event::{self, Event, KeyCode, KeyEventKind};
2+
use crossterm::event::{self, Event, KeyCode, KeyEventKind, KeyModifiers};
33
use ratatui::{
44
layout::{Alignment, Constraint, Layout, Margin, Rect},
55
prelude::Buffer,
@@ -84,6 +84,9 @@ impl ResultPage {
8484
if key.code == KeyCode::Char('q') {
8585
state.ack = true;
8686
}
87+
if key.code == KeyCode::Char('c') && key.modifiers.contains(KeyModifiers::CONTROL) {
88+
state.ack = true;
89+
}
8790

8891
match key.code {
8992
KeyCode::Char('j') | KeyCode::Down => {

0 commit comments

Comments
 (0)