Skip to content

Ctrl+A in raw file view selects entire page instead of file content #1504

@ambient-code

Description

@ambient-code

Category: bug / UX

Summary

When viewing a file in raw mode, pressing Ctrl+A selects the entire page (all UI elements) instead of just the content of the file in the active tab.

Steps to Reproduce

  1. Open a file artifact in raw mode
  2. Click inside the file content area
  3. Press Ctrl+A
  4. Result: The entire page UI is selected (including navigation, sidebar, headers, etc.)

Expected Behavior

Ctrl+A should select only the text content within the raw file view, scoped to the active tab — standard behavior for a text/code viewer.

Actual Behavior

The browser's default Ctrl+A (select all on page) fires instead of a scoped selection within the file content area. This makes it difficult to quickly copy the full file content.

Notes

  • The raw file view likely needs to capture the Ctrl+A keyboard event and call selectAll() scoped to the content container, preventing the default browser behavior
  • Common pattern in code editors and viewers (e.g. Monaco, CodeMirror) — they intercept Ctrl+A and scope it to the editor area

Filed via Amber Interview

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions