Skip to content

Commit

Permalink
Merge pull request #3887 from myk002/myk_dialogs_are_modal
Browse files Browse the repository at this point in the history
[gui] framed screen subclasses are modal
myk002 authored Oct 16, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 1402cb9 + 15ae84a commit 9812897
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
@@ -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)

0 comments on commit 9812897

Please sign in to comment.