feat(coding-agent/modes): added arrow-key based tab switching in the agent dashboard

- Mapped the right arrow key to advance tabs in the agent dashboard.
- Mapped the left arrow key to reverse tabs alongside shift+tab.
- Kept existing tab and shift+tab handling intact for backward-compatible navigation.
This commit is contained in:
can1357
2026-06-04 16:32:17 +02:00
parent 8709f7a7e6
commit 829b999dc1
@@ -1136,11 +1136,11 @@ export class AgentDashboard extends Container {
return;
}
if (matchesKey(data, "tab")) {
if (matchesKey(data, "tab") || matchesKey(data, "right")) {
this.#switchTab(1);
return;
}
if (matchesKey(data, "shift+tab")) {
if (matchesKey(data, "shift+tab") || matchesKey(data, "left")) {
this.#switchTab(-1);
return;
}