Skip to content

Commit

Permalink
Make these dialogs modal
Browse files Browse the repository at this point in the history
In particular, the quit dialog - it shouldn't be possible to send keys
through to the underlying termshark application when this dialog is
being displayed.
  • Loading branch information
gcla committed Sep 10, 2021
1 parent 15ef1fb commit b594823
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ui/dialog.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ func openMessage(msgt string, openOver gowid.ISettableComposite, focusOnWidget b
BorderStyle: gowid.MakePaletteRef("dialog"),
ButtonStyle: gowid.MakePaletteRef("dialog-button"),
FocusOnWidget: focusOnWidget,
Modal: true,
},
)

Expand Down
1 change: 1 addition & 0 deletions ui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -1347,6 +1347,7 @@ func reallyQuit(app gowid.IApp) {
BackgroundStyle: gowid.MakePaletteRef("dialog"),
BorderStyle: gowid.MakePaletteRef("dialog"),
ButtonStyle: gowid.MakePaletteRef("dialog-button"),
Modal: true,
},
)
YesNo.Open(appView, units(len(msgt)+20), app)
Expand Down

0 comments on commit b594823

Please sign in to comment.