Files

14 lines
313 B
Go
Raw Permalink Normal View History

2023-01-05 06:41:07 +01:00
package runtime
import "context"
func ClipboardGetText(ctx context.Context) (string, error) {
appFrontend := getFrontend(ctx)
return appFrontend.ClipboardGetText()
}
func ClipboardSetText(ctx context.Context, text string) error {
appFrontend := getFrontend(ctx)
return appFrontend.ClipboardSetText(text)
}