Skip to content

ensure deleting attachment works on windows#299824

Merged
meganrogge merged 1 commit intomainfrom
merogge/kb-fix
Mar 6, 2026
Merged

ensure deleting attachment works on windows#299824
meganrogge merged 1 commit intomainfrom
merogge/kb-fix

Conversation

@meganrogge
Copy link
Copy Markdown
Collaborator

fixes #299733

Copilot AI review requested due to automatic review settings March 6, 2026 17:45
@meganrogge meganrogge self-assigned this Mar 6, 2026
@meganrogge meganrogge added this to the 1.112.0 milestone Mar 6, 2026
@meganrogge meganrogge enabled auto-merge (squash) March 6, 2026 17:45
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Improves keyboard accessibility for removing chat attachment “context” items (notably on Windows) by ensuring Backspace/Delete key presses are handled exclusively by the attachment widget when it supports deletion.

Changes:

  • Prevent default browser behavior and stop event propagation when Backspace/Delete is pressed on a deletable attachment.
  • Fire the attachment deletion event after suppressing the key event’s default handling.

@meganrogge meganrogge merged commit 140fced into main Mar 6, 2026
24 checks passed
@meganrogge meganrogge deleted the merogge/kb-fix branch March 6, 2026 18:05
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.

[Accessibility] No way to remove attached context file via keyboard

3 participants