From 630c5f57f5e202717e0883f845460ba4b8391314 Mon Sep 17 00:00:00 2001 From: 20kdc Date: Sat, 29 Sep 2018 10:43:46 +0100 Subject: [PATCH] app-metamachine: Native clipboard support --- claw/repo-claw.lua | 2 +- repository/apps/app-metamachine.lua | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/claw/repo-claw.lua b/claw/repo-claw.lua index f4bbf3a..b77fe67 100644 --- a/claw/repo-claw.lua +++ b/claw/repo-claw.lua @@ -126,7 +126,7 @@ return { }, ["app-metamachine"] = { desc = "Virtual machine", - v = 2, + v = 3, deps = { "neo", "zzz-license-pd" diff --git a/repository/apps/app-metamachine.lua b/repository/apps/app-metamachine.lua index 1bae1f0..4ce177b 100644 --- a/repository/apps/app-metamachine.lua +++ b/repository/apps/app-metamachine.lua @@ -533,6 +533,9 @@ while ((not vmBaseCoroutine) or (coroutine.status(vmBaseCoroutine) ~= "dead")) a break elseif ev[3] == "line" then screensInt[id][2].line(ev[4]) + elseif ev[3] == "clipboard" then + table.insert(signalStack, {ev[3], screensInt[id][1] .. "-kb", ev[4], "neo"}) + break elseif ev[3] == "touch" or ev[3] == "drag" or ev[3] == "drop" or ev[3] == "scroll" then local x = ev[4] local y = ev[5]