Skip to content

Make copy shortcut more user‑friendly: use Ctrl+C for copy when text is selected, otherwise prompt for exit confirmation #176

Description

@HaonanWang7

Description

Current behavior

The application uses Ctrl+Shift+C as the copy shortcut, following the traditional Linux terminal convention. However, many users are accustomed to using Ctrl+C for copying in other environments. As a result, when they intend to copy selected text, they accidentally trigger a kill (or interrupt) action instead, which can be disruptive and frustrating.

Suggested improvement (one possible approach)

We might consider detecting whether any text is selected in the terminal/interface:

  • If text is selected, treat Ctrl+C as a copy command (equivalent to Ctrl+Shift+C).
  • If no text is selected, treat Ctrl+C as the usual interrupt signal, but with an additional confirmation prompt(e.g., "Are you sure you want to exit?") to prevent accidental termination.

Rationale

This change would align with user expectations from modern editors and shells, significantly reducing accidental exits while preserving the ability to interrupt processes when needed. The confirmation step adds a safety net, making the experience more forgiving and intuitive.

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