Skip to content

Fix: remove Enter key handling from ConfirmDialog component#357

Open
rami-elementor wants to merge 1 commit intocore-betafrom
dialog-enter-handling
Open

Fix: remove Enter key handling from ConfirmDialog component#357
rami-elementor wants to merge 1 commit intocore-betafrom
dialog-enter-handling

Conversation

@rami-elementor
Copy link
Copy Markdown
Contributor

The ConfirmDialog.tsx captures onKeyDown to trigger dialog confirmation.

The issue is that onKeyDown captures Enter globally within the modal.

This can conflict with screen reader virtual buffer navigation and activate the confirm action unintentionally.

To avoid unintentional activation, the dialog should capture Enter key only when focus is on the confirm button, or use native button activation behavior.

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.

1 participant