Skip to content

Confirm modals cancel issue #1576

@yflory

Description

@yflory

Description

If you focus the "Cancel" button and press "Enter" in a confirm modal, it will trigger the "OK" button action.

Steps to reproduce

  1. Create a pad
  2. Store it in your drive
  3. Use File / "Move to trash" to get a confirm modal
  4. Focus "Cancel" using keyboard
  5. Press Enter
  6. Your pad has been moved to the trash

Relevant logs

No response

Expected behavior

The Cancel button shouldn't trigger the OK action 🥲

Which operating system are you using?

No response

What browsers are you seeing the problem on?

No response

Extensions

Version

2024.6.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions