Fix capital letter bug in windows

This commit is contained in:
Austen Adler 2021-05-18 19:56:10 -04:00
parent ae80f98826
commit 8fa4b08314

View File

@ -414,6 +414,14 @@ fn handle_key(app: &mut App, key: KeyEvent) -> CalculatorResult<CalculatorRespon
} => { } => {
app.calculator.take_input(c)?; app.calculator.take_input(c)?;
} }
KeyEvent {
code: KeyCode::Char(c),
modifiers: KeyModifiers::SHIFT,
} => {
for c in c.to_uppercase() {
app.calculator.take_input(c)?;
}
}
_ => {} _ => {}
}, },
} }