Skip to content

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
@dobrinyonkov dobrinyonkov merged commit 404e96b into main Jun 16, 2025
12 checks passed
@dobrinyonkov dobrinyonkov deleted the shellbar-arrow-navigation branch June 16, 2025 05:34
@ui5-webcomponents-bot
Copy link
Collaborator

🎉 This PR is included in version v2.12.0-rc.1 🎉

The release is available on v2.12.0-rc.1

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants