Skip to content

Commit 4d4e3ce

Browse files
committed
fix(tui): add Left arrow key to sandbox policy/settings tab switching
1 parent 8ce3f6e commit 4d4e3ce

File tree

1 file changed

+2
-2
lines changed
  • crates/openshell-tui/src

1 file changed

+2
-2
lines changed

crates/openshell-tui/src/app.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,7 @@ impl App {
11381138
self.policy_scroll = 0;
11391139
}
11401140
KeyCode::Char('q') => self.running = false,
1141-
KeyCode::Char('h') | KeyCode::Right => {
1141+
KeyCode::Char('h') | KeyCode::Left | KeyCode::Right => {
11421142
self.sandbox_policy_tab = self.sandbox_policy_tab.next();
11431143
}
11441144
_ => {}
@@ -1154,7 +1154,7 @@ impl App {
11541154
self.screen = Screen::Dashboard;
11551155
self.focus = Focus::Sandboxes;
11561156
}
1157-
KeyCode::Char('h') | KeyCode::Right => {
1157+
KeyCode::Char('h') | KeyCode::Left | KeyCode::Right => {
11581158
self.sandbox_policy_tab = self.sandbox_policy_tab.next();
11591159
}
11601160
KeyCode::Char('l') => {

0 commit comments

Comments
 (0)