fix(custom): type 'a' in command input and enlarge input box
This commit is contained in:
parent
542c1db67e
commit
ae1ab0fba1
2 changed files with 3 additions and 1 deletions
|
|
@ -141,6 +141,8 @@ fn handle_custom_event(app: &mut App, key: event::KeyEvent) -> bool {
|
||||||
KeyCode::Char('a') => {
|
KeyCode::Char('a') => {
|
||||||
if state.focus == CustomFocus::Lines {
|
if state.focus == CustomFocus::Lines {
|
||||||
state.toggle_all();
|
state.toggle_all();
|
||||||
|
} else {
|
||||||
|
state.command.push('a');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
KeyCode::Backspace => {
|
KeyCode::Backspace => {
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ fn draw_custom(f: &mut Frame, app: &App) {
|
||||||
.margin(1)
|
.margin(1)
|
||||||
.constraints([
|
.constraints([
|
||||||
Constraint::Min(5),
|
Constraint::Min(5),
|
||||||
Constraint::Length(3),
|
Constraint::Length(5),
|
||||||
Constraint::Length(1),
|
Constraint::Length(1),
|
||||||
])
|
])
|
||||||
.split(f.area());
|
.split(f.area());
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue