aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoris2022-10-09 18:06:30 +0200
committerJoris2022-10-09 18:06:30 +0200
commit902be75848b99b4f60bbd74cd305b899afeeac78 (patch)
tree0bab1ac20aa8e2fd4f8013549b5cc511388a4314 /src
parent641d01f285c82d30d7d43c260c07145764750a0d (diff)
Allow to abort when selecting difficulty
Diffstat (limited to 'src')
-rw-r--r--src/gui/question.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/question.rs b/src/gui/question.rs
index 33adabc..1c4f179 100644
--- a/src/gui/question.rs
+++ b/src/gui/question.rs
@@ -191,6 +191,9 @@ pub fn ask<B: Backend>(
difficulty: selected,
})
}
+ Key::Ctrl('c') => {
+ return Ok(Response::Aborted);
+ }
_ => {}
},
}