Add ctrl-j as enter
This commit is contained in:
parent
b8c2f24f6e
commit
cd1eb22a7d
@ -381,6 +381,10 @@ fn handle_key(app: &mut App, key: KeyEvent) -> CalculatorResult<CalculatorRespon
|
|||||||
code: KeyCode::Enter,
|
code: KeyCode::Enter,
|
||||||
modifiers: KeyModifiers::NONE,
|
modifiers: KeyModifiers::NONE,
|
||||||
}
|
}
|
||||||
|
| KeyEvent {
|
||||||
|
code: KeyCode::Char('j'),
|
||||||
|
modifiers: KeyModifiers::CONTROL,
|
||||||
|
}
|
||||||
| KeyEvent {
|
| KeyEvent {
|
||||||
code: KeyCode::Char(' '),
|
code: KeyCode::Char(' '),
|
||||||
modifiers: KeyModifiers::NONE,
|
modifiers: KeyModifiers::NONE,
|
||||||
@ -419,7 +423,7 @@ fn handle_key(app: &mut App, key: KeyEvent) -> CalculatorResult<CalculatorRespon
|
|||||||
app.calculator.take_input(c)?;
|
app.calculator.take_input(c)?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_ => {}
|
_key_event => {}
|
||||||
},
|
},
|
||||||
(AppState::Help, _) => match key {
|
(AppState::Help, _) => match key {
|
||||||
KeyEvent {
|
KeyEvent {
|
||||||
|
Loading…
Reference in New Issue
Block a user