From 15ae84a31bbe66003b7942bdc158f316ea3b461b Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Sun, 15 Oct 2023 17:22:29 -0700 Subject: [PATCH] framed screen subclasses are modal so they should swallow all input --- library/lua/gui.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/lua/gui.lua b/library/lua/gui.lua index 4ee3eba4a..555e060d1 100644 --- a/library/lua/gui.lua +++ b/library/lua/gui.lua @@ -1027,6 +1027,11 @@ function FramedScreen:onRenderFrame(dc, rect) paint_frame(dc,rect,self.frame_style,self.frame_title) end +function FramedScreen:onInput(keys) + FramedScreen.super.onInput(self, keys) + return true -- FramedScreens are modal +end + -- Inverts the brightness of the color, optionally taking a "bold" parameter, -- which you should include if you're reading the fg color of a pen. function invert_color(color, bold)