diff --git a/README.md b/README.md index 5cca6fe..dbf7bdf 100644 --- a/README.md +++ b/README.md @@ -152,7 +152,7 @@ oc-stats cache clean Once the program is running, you can quickly navigate pages and time ranges using the keyboard: -- `Tab` / `Left` / `Right` / `h` / `l` — Switch pages +- `Tab` / `Shift+Tab` / `Left` / `Right` / `h` / `l` — Switch pages - `Up` / `Down` / `j` / `k` — Move focus within `Models` / `Providers` pages - `r` — Cycle through time ranges - `1` / `2` / `3` — Quickly switch time ranges diff --git a/README_CN.md b/README_CN.md index deb4bb7..e8d9a5d 100644 --- a/README_CN.md +++ b/README_CN.md @@ -152,7 +152,7 @@ oc-stats cache clean 程序启动后可通过键盘快速切换页面和统计范围: -- `Tab` / `Left` / `Right` / `h` / `l`:切换页面 +- `Tab` / `Shift+Tab` / `Left` / `Right` / `h` / `l`:切换页面 - `Up` / `Down` / `j` / `k`:在 `Models` / `Providers` 页面中移动焦点 - `r`:循环切换统计范围 - `1` / `2` / `3`:快速切换时间范围 diff --git a/src/ui/app.rs b/src/ui/app.rs index 5208fa2..8bfb294 100644 --- a/src/ui/app.rs +++ b/src/ui/app.rs @@ -291,7 +291,7 @@ impl App { .status_message .as_ref() .map(|status| status.text.as_str()) - .unwrap_or(" ←/→ h/l pages | r cycle | 1/2/3 pick | share | q exit"); + .unwrap_or("<(shift-)tab> ←/→ h/l pages | r cycle | 1/2/3 pick | share | q exit"); frame.render_widget( ratatui::widgets::Paragraph::new(status).style(theme.muted_style()), area, @@ -366,7 +366,7 @@ impl App { self.search = None; self.page = self.page.next(); } - KeyCode::Left | KeyCode::Char('h') => { + KeyCode::BackTab | KeyCode::Left | KeyCode::Char('h') => { self.search = None; self.page = self.page.previous(); }