Skip to content

fix(ui5-shellbar): arrow key navigation inputs support #11684

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dobrinyonkov
Copy link
Contributor

@dobrinyonkov dobrinyonkov commented Jun 9, 2025

This update improves keyboard navigation in the ShellBar component. It also cleans up parts of the code to make it easier to maintain.

Keyboard Navigation

  • Arrow keys in input fields
    Arrow keys now move focus only if the cursor is at the start or end of the input.

  • Test for input navigation
    Added a Cypress test to check arrow key behavior in the search input.

Refactoring

  • Simplified focus logic
    Replaced _getVisibleAndInteractiveItems and _getNavigableContent with getTabbableElements.

  • Navigation helpers
    Added _allowChildNavigation and _allowInputNavigation to handle when child elements should manage keyboard events.

@dobrinyonkov dobrinyonkov changed the title feat(ui5-shellbar): implement smart arrow key navigation with child c… feat(ui5-shellbar): implement smart arrow key navigation Jun 9, 2025
@dobrinyonkov dobrinyonkov force-pushed the shellbar-arrow-navigation branch from 02ecefa to eca9e43 Compare June 12, 2025 19:39
@dobrinyonkov dobrinyonkov changed the title feat(ui5-shellbar): implement smart arrow key navigation fix(ui5-shellbar): arrow key navigation inputs support Jun 12, 2025
@yanaminkova yanaminkova self-requested a review June 13, 2025 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants