Skip to content

Commit

Permalink
fixed not being able to enter q
Browse files Browse the repository at this point in the history
  • Loading branch information
cqb13 committed Oct 5, 2024
1 parent 9904282 commit ecd723e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/letter_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl LetterInput {
kind: KeyEventKind::Press,
..
}) => match code {
KeyCode::Char('q') => {
KeyCode::Esc => {
terminal::disable_raw_mode().unwrap();
std::process::exit(0);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use std::io;
fn main() {
println!("Welcome to word finder!");
println!("Find the perfect word for you.");
println!("Press q at any time to exit the program.");
println!("Press \"esc\" at any time to exit the program.");
loop {
search()
}
Expand Down
2 changes: 1 addition & 1 deletion src/number_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl NumberInput {
kind: KeyEventKind::Press,
..
}) => match code {
KeyCode::Char('q') => {
KeyCode::Esc => {
terminal::disable_raw_mode().unwrap();
std::process::exit(0);
}
Expand Down

0 comments on commit ecd723e

Please sign in to comment.