diff options
author | Joris | 2022-10-09 18:06:30 +0200 |
---|---|---|
committer | Joris | 2022-10-09 18:06:30 +0200 |
commit | 902be75848b99b4f60bbd74cd305b899afeeac78 (patch) | |
tree | 0bab1ac20aa8e2fd4f8013549b5cc511388a4314 | |
parent | 641d01f285c82d30d7d43c260c07145764750a0d (diff) |
Allow to abort when selecting difficulty
-rw-r--r-- | src/gui/question.rs | 3 |
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); + } _ => {} }, } |