Skip to content

fix: only cancel the embedded picker on Escape without a selection - #4399

Merged
AlexAndBear merged 2 commits into
mainfrom
fix/embed-escape-with-selection
Nov 10, 2026
Merged

AlexAndBear merged 2 commits into
mainfrom
fix/embed-escape-with-selection

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

Escape in the embedded picker clears a selection first again, like in 7.2.4; only an Escape with nothing selected cancels the picker.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: unit: Escape with a selection doesn't emit cancel, also when the file list clears the selection on the same keypress; Escape with an empty selection and in the file name input still cancels
  • test case 2: browser: 2 selected files, first Escape clears, second cancels once (default, file and location mode, desktop and Pixel 7)
  • test case 3: browser: drops and modals close first, search bar focus doesn't cancel, Cancel/Attach/Share/Select/file pick events unchanged

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear
AlexAndBear merged commit 523abdf into main Nov 10, 2026
28 checks passed
@AlexAndBear
AlexAndBear deleted the fix/embed-escape-with-selection branch November 10, 2026 13:33
@openclouders openclouders mentioned this pull request Nov 10, 2026
1 task
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.

Escape with selected files cancels the embedded picker

2 participants