Skip to content

One Ctrl+Z after two quick deletions restores both #3946

Closed

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

One Ctrl+Z after two quick deletions restores both files. Every deletion binds its own Ctrl+Z for the 7 seconds of its toast (packages/web-app-files/src/composables/actions/useFileActionsDeleteResources.ts:111-122), and useKeyboardActions runs every matching binding, so a single Ctrl+Z triggers all pending undos.

Reproduction Steps

  1. Delete file A.
  2. Within 7 seconds, delete file B.
  3. Press Ctrl+Z once.

Expected Outcome

Only B is restored. A can still be restored with the Undo button of its toast.

Actual Outcome

A and B are both restored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions