Skip to content

Commit

Permalink
cntl-d
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecvet committed Mar 12, 2024
1 parent 22b9ca3 commit 5f8e654
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion inquire/src/prompts/action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ where
Key::Enter
| Key::Char('\n', KeyModifiers::NONE)
| Key::Char('j', KeyModifiers::CONTROL) => Some(Action::Submit),
Key::Escape | Key::Char('g', KeyModifiers::CONTROL) => Some(Action::Cancel),
Key::Escape
| Key::Char('g', KeyModifiers::CONTROL)
| Key::Char('d', KeyModifiers::CONTROL) => Some(Action::Cancel),
Key::Char('c', KeyModifiers::CONTROL) => Some(Action::Interrupt),
key => I::from_key(key, config).map(Action::Inner),
}
Expand Down

0 comments on commit 5f8e654

Please sign in to comment.