Skip to content

Commit

Permalink
use q to quit statistics screen
Browse files Browse the repository at this point in the history
  • Loading branch information
radlinskii committed Oct 19, 2024
1 parent d95810d commit 25139f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test_results.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ impl TestResults {

frame.render_widget(Paragraph::new("Test completed"), areas[0]);
frame.render_widget(
Paragraph::new("Press <Esc> to quit")
Paragraph::new("Press 'q' to quit")
.alignment(ratatui::prelude::Alignment::Right)
.green(),
areas[0],
Expand All @@ -204,7 +204,7 @@ impl TestResults {
if let Event::Key(key) = event::read().context("Unable to read event")? {
if key.kind == KeyEventKind::Press {
match key.code {
KeyCode::Esc => {
KeyCode::Char('q') => {
break;
}
_ => {}
Expand Down Expand Up @@ -309,7 +309,7 @@ pub fn render_results<B: Backend>(
.split(frame.size());

frame.render_widget(
Paragraph::new("Press <Esc> to quit")
Paragraph::new("Press 'q' to quit")
.alignment(ratatui::prelude::Alignment::Right)
.green(),
areas[0],
Expand All @@ -323,7 +323,7 @@ pub fn render_results<B: Backend>(
if let Event::Key(key) = event::read().context("Unable to read event")? {
if key.kind == KeyEventKind::Press {
match key.code {
KeyCode::Esc => {
KeyCode::Char('q') => {
break;
}
_ => {}
Expand Down

0 comments on commit 25139f2

Please sign in to comment.