Skip to content

Tab and Shift+Tab do not move focus between contact fields #5579

Description

@mikqu

Describe the bug

Description
When creating or editing a contact, pressing Tab or Shift+Tab while focused in a text field does not move focus to the next or previous field. Focus remains in the current field, so entering contacts by keyboard requires clicking each field manually.

Steps to reproduce

Open the Contacts app.
Create a new contact.
Click the Name field.
Enter text.
Press Tab.
Also test Shift+Tab.

Expected behavior

Focus moves to the next or previous interactive field.

Actual behavior

Nothing happens. Focus stays in the current field.

Contact version

8.7.4

Operating system

Debian GNU/Linux 12 (bookworm) (Build 6.1.0-50-amd64) (64-bit)

PHP engine version

PHP 8.4

Web server

Nginx

Database

MariaDB

Additional info

Reproduces in both Chrome and Firefox.
No errors appear in the browser console.
Tab navigation works normally in other Nextcloud apps, including Files.
Browser keyboard shortcuts such as Ctrl+L work normally.
A capturing keydown listener reports defaultPrevented: true for the Tab event.
A temporary capturing listener that stops propagation and manually focuses the next control restores Tab and Shift+Tab navigation.

Likely cause
A JavaScript keyboard handler in the Contacts page is cancelling the Tab event with preventDefault() but is not moving focus to another element.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions