Add j/k shortcuts for scrolling and update help instructions in TUI
fixes #18
This commit is contained in:
@@ -328,10 +328,12 @@ impl ChatApp {
|
||||
self.mode = InputMode::Editing;
|
||||
self.sync_buffer_to_textarea();
|
||||
}
|
||||
(KeyCode::Up, KeyModifiers::NONE) => {
|
||||
(KeyCode::Up, KeyModifiers::NONE)
|
||||
| (KeyCode::Char('k'), KeyModifiers::NONE) => {
|
||||
self.on_scroll(-1isize);
|
||||
}
|
||||
(KeyCode::Down, KeyModifiers::NONE) => {
|
||||
(KeyCode::Down, KeyModifiers::NONE)
|
||||
| (KeyCode::Char('j'), KeyModifiers::NONE) => {
|
||||
self.on_scroll(1isize);
|
||||
}
|
||||
(KeyCode::Esc, KeyModifiers::NONE) => {
|
||||
|
||||
Reference in New Issue
Block a user