We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8cdaf3 commit dcb1974Copy full SHA for dcb1974
src/prompts/confirm.rs
@@ -194,12 +194,6 @@ impl Confirm<'_> {
194
Key::Escape | Key::Char('q') if allow_quit => {
195
value = None;
196
}
197
- Key::Unknown => {
198
- return Err(io::Error::new(
199
- io::ErrorKind::NotConnected,
200
- "Not a terminal",
201
- ))?;
202
- }
203
_ => {
204
continue;
205
@@ -218,12 +212,6 @@ impl Confirm<'_> {
218
212
Key::Char('n') | Key::Char('N') => Some(false),
219
213
Key::Enter if self.default.is_some() => Some(self.default.unwrap()),
220
214
Key::Escape | Key::Char('q') if allow_quit => None,
221
222
223
224
225
226
227
215
228
216
229
217
0 commit comments