Skip to content

Commit

Permalink
feat: add keyboard navigation for up/down arrow keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel-Tyan authored and martyanovandrey committed Jul 24, 2024
1 parent 8ef448d commit d36f6b6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/runtime/TabsController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ export class TabsController {
direction = 'right';
break;
}
case 'ArrowUp': {
direction = 'left';
break;
}
case 'ArrowDown': {
direction = 'right';
break;
}
}
if (!direction) {
return;
Expand Down

0 comments on commit d36f6b6

Please sign in to comment.