Skip to content

Charts - Closing expanded chart with Esc shows a blue frame and waits for key release #101373

Description

@luacmartins

Problem

Closing an expanded chart with Esc shows a blue frame. Escape dismissal also differs from the normal attachment viewer: attachments close on keydown, while the chart modal waits until keyup.

Reported by @situchan during review of #97698. The keydown/keyup inconsistency was explicitly identified as pre-existing and deferred to a separate issue.

Action Performed

  1. Open a chat containing an inline chart.
  2. Click the expand button to open the full-screen chart modal.
  3. Press and hold Esc, then release it.
  4. Observe when the modal closes and the blue frame shown on dismissal.
  5. Open a normal image attachment and repeat the same Escape interaction to compare.

Expected Result

  • The expanded chart closes immediately on Esc keydown, matching the normal attachment viewer.
  • Closing the chart with Esc does not introduce the blue-frame artifact shown in the recording.

Actual Result

  • The chart modal closes only when Esc is released (keyup).
  • A blue frame appears when closing the modal with Esc.
  • Normal attachments close immediately on Esc keydown.

Context

Screenshots/Videos

Screen.Recording.2026-09-15.at.10.37.09.PM.mov
Issue OwnerCurrent Issue Owner: @abbasifaizan70

Activity

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

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in reviewWeeklyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions