diff options
Diffstat (limited to 'src/input.rs')
| -rw-r--r-- | src/input.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/input.rs b/src/input.rs index 6362e48..998d380 100644 --- a/src/input.rs +++ b/src/input.rs @@ -11,6 +11,13 @@ impl Calculator { } _ => {} }, + KeyModifiers::SHIFT => match key.code { + KeyCode::Char('D') => { + self.input_buffer = String::new(); + self.stack = Vec::new(); + } + _ => {} + }, KeyModifiers::NONE => match key.code { KeyCode::Char('q') => { return Signal::Exit; |