mirror of
https://github.com/ratatui/ratatui.git
synced 2025-09-27 13:01:13 +00:00
fix(demo): support tab key in demo2 example (#1726)
see #1721 Not sure what caused this - it's been there for a while probably and we didn't realize it since we used `demo2-destroy` mostly.
This commit is contained in:
parent
e7defb36de
commit
dca331c748
@ -93,7 +93,7 @@ impl App {
|
||||
match key.code {
|
||||
KeyCode::Char('q') | KeyCode::Esc => self.mode = Mode::Quit,
|
||||
KeyCode::Char('h') | KeyCode::Left => self.prev_tab(),
|
||||
KeyCode::Char('l') | KeyCode::Right => self.next_tab(),
|
||||
KeyCode::Char('l') | KeyCode::Right | KeyCode::Tab => self.next_tab(),
|
||||
KeyCode::Char('k') | KeyCode::Up => self.prev(),
|
||||
KeyCode::Char('j') | KeyCode::Down => self.next(),
|
||||
KeyCode::Char('d') | KeyCode::Delete => self.destroy(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user