Skip to content

Commit

Permalink
change moving up or down in the menu with arrow keys when scenario is…
Browse files Browse the repository at this point in the history
… selected to go right to the previous or next item
  • Loading branch information
lurock committed Sep 30, 2017
1 parent 6e8c57f commit 53ceed4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/app.component.ts
Expand Up @@ -1067,7 +1067,7 @@ export class AppComponent {
const currentIndex = this.findCurrentScenarioIndex();

if (currentIndex) {
this.focusScenarioLinkElement(currentIndex);
this.focusScenarioLinkElement(currentIndex + 1);
} else {
this.focusScenarioLinkElement(0);
}
Expand All @@ -1078,7 +1078,7 @@ export class AppComponent {
const currentIndex = this.findCurrentScenarioIndex();

if (currentIndex) {
this.focusScenarioLinkElement(currentIndex);
this.focusScenarioLinkElement(currentIndex - 1);
} else if (this.scenarioLinkElements.length > 0) {
this.focusScenarioLinkElement(this.scenarioLinkElements.length - 1);
}
Expand Down

0 comments on commit 53ceed4

Please sign in to comment.