Skip to content

Commit

Permalink
fix(f6navigation): prevent default behavior on windows OS (#5424)
Browse files Browse the repository at this point in the history
  • Loading branch information
nnaydenow authored Jun 28, 2022
1 parent 8d4db8b commit a494f85
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/base/src/features/F6Navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ class F6Navigation {
return;
}

event.preventDefault();

const nextIndex = this.groups.indexOf(this.selectedGroup);
let nextElement = null;

Expand All @@ -44,6 +46,8 @@ class F6Navigation {
return;
}

event.preventDefault();

const nextIndex = this.groups.indexOf(this.selectedGroup);
let nextElement = null;

Expand Down
5 changes: 5 additions & 0 deletions packages/fiori/test/pages/F6TestPage.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@
<ui5-button>3</ui5-button>
<ui5-button>4</ui5-button>
</div>
<div>
Ensure that typing inside ui5-input works when F6 navigation is enabled
<br />
<ui5-input id="testInput"></ui5-input>
</div>
<ui5-panel id="panel-expandable" accessible-role="Complementary" header-text="Both expandable and expanded"
header-level="H4">
<!-- Content -->
Expand Down

0 comments on commit a494f85

Please sign in to comment.