Help dialog closes with ESC again

This commit is contained in:
thrust26 2018-01-24 15:55:25 +01:00
parent 32e9c14b0d
commit 97553b9d93
2 changed files with 2 additions and 1 deletions

View File

@ -61,7 +61,7 @@ AboutDialog::AboutDialog(OSystem& osystem, DialogContainer& parent,
new ButtonWidget(this, font, xpos, ypos, buttonWidth, buttonHeight,
"Close", GuiObject::kCloseCmd);
wid.push_back(b);
addOKWidget(b); addCancelWidget(b);
addCancelWidget(b);
xpos = 5; ypos = 5 + _th;
myTitle = new StaticTextWidget(this, font, xpos, ypos, _w - xpos * 2, fontHeight,

View File

@ -60,6 +60,7 @@ HelpDialog::HelpDialog(OSystem& osystem, DialogContainer& parent,
new ButtonWidget(this, font, xpos, ypos, buttonWidth, buttonHeight,
"Close", GuiObject::kCloseCmd);
wid.push_back(b);
addCancelWidget(b);
xpos = 5; ypos = 5 + _th;
myTitle = new StaticTextWidget(this, font, xpos, ypos, _w - 10, fontHeight,