clipboardText
Get the textual content of the system clipboard. Caller must copy.
Only valid between Window.beginand Window.end.
Source
Implementation
pub fn clipboardText() []const u8 {
const cw = currentWindow();
return cw.backend.clipboardText() catch |err| blk: {
logError(@src(), err, "Could not get clipboard text", .{});
break :blk "";
};
}