Skip to content

Commit

Permalink
Fix input key event handling
Browse files Browse the repository at this point in the history
  • Loading branch information
homeworkprod committed Feb 22, 2025
1 parent 773b258 commit 1b0582f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/userinput.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl StringReader {
return None;
}

if let EventSummary::Key(_, key_code, 1) = event.destructure() {
if let EventSummary::Key(_, key_code, 0) = event.destructure() {
match key_code {
KeyCode::KEY_ENTER => {
let input = &self.chars_read.as_str().to_owned();
Expand Down

0 comments on commit 1b0582f

Please sign in to comment.