Skip to content

Confirmations break clipboard content #1383

Open

Description

@zs-dima

Confirmations suggest using the clipboard to confirm operations, so it breaks the clipboard content.
It would be nice to use double-click to select the confirmation text and drag&drop it into the confirmation field, so the clipboard content is not affected.

Confirm Deploy
Please enter infra-stack below to confirm this action.
You may click the text in bold to copy it

Activity

  1. thedancingdeveloper commented on Jul 27, 2026

    @thedancingdeveloper

    I reproduced a narrower variant of this on the active 2.3.0 branch with mogh_ui@0.7.6.

    The published ConfirmModal markup renders the prompt as adjacent inline nodes:

    Please enter <b>{confirmText}</b> below to confirm this action.

    Its click handler writes confirmText itself, so the programmatic clipboard value is exact. The trailing space appears when the name is manually selected with a double-click: the browser selection can include the whitespace immediately before below, and a subsequent Ctrl/Cmd+C copies that whitespace.

    I propose a small Komodo-side fix in the shared confirmation wrapper: when the double-click target is the bold confirmation value, explicitly select only that element's contents. This keeps the current click-to-copy behavior, avoids duplicating the full mogh_ui modal, and applies to Komodo confirmation dialogs through one wrapper. I will keep the PR scoped to exact manual selection and target 2.3.0.

    This does not by itself change the broader click-to-copy behavior described in the original report; moving that behavior entirely to double-click would be best handled in the shared mogh_ui component.

  2. thedancingdeveloper commented on Jul 27, 2026

    @thedancingdeveloper

    PR opened against 2.3.0: #1544

    It contains one focused change in the shared Komodo confirmation wrapper and the UI production build passes.

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

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