diff options
| author | Mo <76752051+mo8it@users.noreply.github.com> | 2024-10-14 01:29:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-14 01:29:25 +0200 |
| commit | baeeff389c95ba145e3383ec1f1357e078d0bbca (patch) | |
| tree | 4d3157197acaf9705c5d1da17b3e6c5c28dc495b /src/watch/terminal_event.rs | |
| parent | 84a42a2b24687ed11f4d2a5c9b624d00b74de916 (diff) | |
| parent | 932bc25d8824e18debc91e5f25f022e8d066bcf8 (diff) | |
Merge pull request #2122 from Nahor/check_all
Improvement to "check all exercises"
Diffstat (limited to 'src/watch/terminal_event.rs')
| -rw-r--r-- | src/watch/terminal_event.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/watch/terminal_event.rs b/src/watch/terminal_event.rs index 1ed681d..48411db 100644 --- a/src/watch/terminal_event.rs +++ b/src/watch/terminal_event.rs @@ -11,6 +11,7 @@ pub enum InputEvent { Run, Hint, List, + CheckAll, Reset, Quit, } @@ -37,6 +38,7 @@ pub fn terminal_event_handler( KeyCode::Char('r') if manual_run => InputEvent::Run, KeyCode::Char('h') => InputEvent::Hint, KeyCode::Char('l') => break WatchEvent::Input(InputEvent::List), + KeyCode::Char('c') => InputEvent::CheckAll, KeyCode::Char('x') => { if sender.send(WatchEvent::Input(InputEvent::Reset)).is_err() { return; |
