aboutsummaryrefslogtreecommitdiffstats
path: root/src/input.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/input.rs')
-rw-r--r--src/input.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/input.rs b/src/input.rs
index ab4a1d1..2f9d820 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -12,17 +12,17 @@ impl Calculator {
_ => {}
},
KeyModifiers::SHIFT => match key.code {
- KeyCode::Char('D') => self.clear(),
- _ => {}
- },
- KeyModifiers::NONE => match key.code {
- KeyCode::Char('q') => {
+ KeyCode::Char('Q') => {
return Signal::Exit;
}
- KeyCode::Char('j' | 'k') => self.swap(),
- KeyCode::Char('d') => {
+ KeyCode::Char('J' | 'K') => self.swap(),
+ KeyCode::Char('D') => {
self.input_buffer = String::new();
}
+ KeyCode::Char('C') => self.clear(),
+ _ => {}
+ },
+ KeyModifiers::NONE => match key.code {
KeyCode::Char(c) => self.push_to_buffer(c),
KeyCode::Backspace => {
self.input_buffer.pop();