aboutsummaryrefslogtreecommitdiffstats
path: root/src/input.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/input.rs')
-rw-r--r--src/input.rs7
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;