From 8fa4b0831445ceecc80a0bcc8ebcbc898e64be54 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Tue, 18 May 2021 19:56:10 -0400 Subject: [PATCH] Fix capital letter bug in windows --- src/main.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main.rs b/src/main.rs index 1c7f952..d6b93a7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -414,6 +414,14 @@ fn handle_key(app: &mut App, key: KeyEvent) -> CalculatorResult { app.calculator.take_input(c)?; } + KeyEvent { + code: KeyCode::Char(c), + modifiers: KeyModifiers::SHIFT, + } => { + for c in c.to_uppercase() { + app.calculator.take_input(c)?; + } + } _ => {} }, }