forked from 1b-agent/opencadstudio-upstream
feat(properties): copy read-only property values to the clipboard
A read-only value cell is now click-to-copy: clicking writes the full, un-elided value to the system clipboard (copy cursor on hover). One change in render_ro_row, so it covers every read-only row for every entity. Adds Message::PropCopyValue routed through iced::clipboard::write. Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
1 parent
4d2471cafd
commit
c59a584d14
3 files changed
+20
-3
No files matched your search
@@ -1431,6 +1431,9 @@ pub enum Message {
|
||||
},
|
||||
/// User committed a geometry/common field edit (Enter pressed).
|
||||
PropGeomCommit(&'static str),
|
||||
/// Copy a read-only property value to the system clipboard (click on a
|
||||
/// read-only value cell). Carries the full, un-elided value.
|
||||
PropCopyValue(String),
|
||||
/// User is typing in a block-attribute value field (live buffer update),
|
||||
/// keyed by the attribute tag.
|
||||
PropAttrInput { tag: String, value: String },
|
||||
|
||||
@@ -2107,6 +2107,8 @@ impl OpenCADStudio {
|
||||
|
||||
Message::PropGeomCommit(field) => self.on_prop_geom_commit(field),
|
||||
|
||||
Message::PropCopyValue(value) => iced::clipboard::write(value),
|
||||
|
||||
Message::PropAttrInput { tag, value } => {
|
||||
self.tabs[self.active_tab]
|
||||
.properties
|
||||
|
||||
Reference in new issue
Block a user