Skip to content

Commit

Permalink
fix keyboard nav order, #44
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed May 11, 2020
1 parent e5c239a commit 3dc94ca
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions js/free-objects/view/FreeObjectsScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ class FreeObjectsScreenView extends ScreenView {
gridNode,

// UI
gridViewAquaRadioButtonGroup,
comboBox,
resetAllButton,
gridViewAquaRadioButtonGroup,

// list box above other UI
comboBoxParent,
Expand All @@ -173,7 +173,14 @@ class FreeObjectsScreenView extends ScreenView {
];

// accessible order (markers first in nav order)
this.pdomPlayAreaNode.accessibleOrder = [ this.leftRatioHalf, this.rightRatioHalf, comboBox, comboBoxParent, null ];
this.pdomPlayAreaNode.accessibleOrder = [
this.leftRatioHalf,
this.rightRatioHalf,
gridViewAquaRadioButtonGroup,
comboBox,
comboBoxParent,
resetAllButton,
null ];

// static layout
resetAllButton.right = this.layoutBounds.maxX - ProportionConstants.SCREEN_VIEW_X_MARGIN;
Expand Down

0 comments on commit 3dc94ca

Please sign in to comment.