Merge pull request #3887 from myk002/myk_dialogs_are_modal

[gui] framed screen subclasses are modal
develop
Myk 2023-10-15 17:47:24 -07:00 committed by GitHub
commit 9812897ec4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

@ -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)