diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/message.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/message.rs b/src/gui/message.rs index bc6473a..1ae10a5 100644 --- a/src/gui/message.rs +++ b/src/gui/message.rs @@ -33,8 +33,13 @@ pub fn show<B: Backend>( })?; if wait { - if let Event::Input(Key::Char('q')) = events.next()? { - break; + if let Event::Input(key) = events.next()? { + match key { + Key::Char('q') | Key::Ctrl('c') => { + break; + } + _ => {} + } } } else { break; |