Skip to content

Input: context-menu Paste is permanently disabled on the web backend #3187

Description

@vicanso

Description

On wasm32-unknown-unknown (gpui-kit 0.6.4, unchanged on main), right-clicking
any Input shows Paste greyed out no matter what is on the clipboard. Cut / Copy /
Select All and Ctrl/Cmd+V all work.

The menu gates the item on cx.read_from_clipboard().is_some()
(crates/component/src/input/input.rs:620), and the web platform returns None
there by design (gpui-pre-web/src/platform.rs:608; the real read is
read_from_clipboard_async). paste has the same dependency
(crates/base/src/input/base/state.rs:2630), so un-greying alone would leave a
clickable item that inserts nothing.

Environment

  • GPUI: 0.3.5
  • GPUI Component: 0.6.4
  • Platform: macos27

Activity

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