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
Description
On
wasm32-unknown-unknown(gpui-kit 0.6.4, unchanged onmain), right-clickingany 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 returnsNonethere by design (
gpui-pre-web/src/platform.rs:608; the real read isread_from_clipboard_async).pastehas the same dependency(
crates/base/src/input/base/state.rs:2630), so un-greying alone would leave aclickable item that inserts nothing.
Environment