From 94db3a151f7d3cd80bf1b215d44f351e683da138 Mon Sep 17 00:00:00 2001 From: totoro Date: Thu, 12 Jun 2025 15:36:26 +0900 Subject: [PATCH] add load_to_clipboard function to be able to copy html into the OS clipboard --- web/load_content.anubis | 10 ++++++++++ 1 file changed, 10 insertions(+), 0 deletions(-) diff --git a/web/load_content.anubis b/web/load_content.anubis index 14b0157..e2a8adc 100644 --- a/web/load_content.anubis +++ b/web/load_content.anubis @@ -177,3 +177,13 @@ public define HTML_Partial_Content )= load_content_init(target, web_action, [], replace, true) . + +public define String + load_to_clipboard + ( + WEB_Action_Name web_action, + List((String,String)) extra_args + )= + + "Xlib.load_to_clipboard('"+format_web_action_name(web_action, extra_args)+"');" +. -- libgit2 0.21.4