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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user