From 7c1e0de4ff36ce9976fd72d40034df82fd2f0349 Mon Sep 17 00:00:00 2001 From: Rivulet Date: Tue, 23 Dec 2025 15:10:22 -0800 Subject: [PATCH] small changes --- libs/containers.lua | 3 +++ startup/99_phoneOS.lua | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/containers.lua b/libs/containers.lua index 7af4dd7..d654703 100644 --- a/libs/containers.lua +++ b/libs/containers.lua @@ -1336,6 +1336,9 @@ function lib.getENV(fspath, term_override, perms) global.peripheral.call = function () end global.peripheral.getMethods = function () end end + if repo and perms.repo then + global.repo = repo + end global.settings = settings global._ENV = global global._G = global diff --git a/startup/99_phoneOS.lua b/startup/99_phoneOS.lua index 3f48f83..dadf48e 100644 --- a/startup/99_phoneOS.lua +++ b/startup/99_phoneOS.lua @@ -170,7 +170,7 @@ local function process() end end for k,v in pairs(apps) do - if (v.filter == nil or v.filter == event[1]) and v ~= focusedapp and event[1] ~= "mouse_click" and event[1] ~= "mouse_up" and event[1] ~= "mouse_drag" and event[1] ~= "mouse_scroll" then + if (v.filter == nil or v.filter == event[1]) and v ~= focusedapp and event[1] ~= "mouse_click" and event[1] ~= "mouse_up" and event[1] ~= "mouse_drag" and event[1] ~= "mouse_scroll" and event[1] ~= "char" and event[1] ~= "key" and event[1] ~= "key_up" then local success, content = coroutine.resume(v.co,table.unpack(event)) if success then v.filter = content