Fix capital letter bug in windows
This commit is contained in:
parent
ae80f98826
commit
8fa4b08314
@ -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)?;
|
||||||
|
}
|
||||||
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user