Skip to content

Commit

Permalink
framed screen subclasses are modal
Browse files Browse the repository at this point in the history
so they should swallow all input
  • Loading branch information
myk002 committed Oct 16, 2023
1 parent 1402cb9 commit 15ae84a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions library/lua/gui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 15ae84a

Please sign in to comment.