Resizing the MessageBox width to accommodate all message text (#299)

* Fixed key events traversal for modal dialogs

The key must be propagated initially to the first chain element
before evaluating if we should stop because of the handled or
the Modal condition. Otherwise the modal dialog
won't get any process key notification.

This fixes c072e29a68

* Resizing the MessageBox width to accommodate all message text

Co-authored-by: Adrian Alonso <adrianalonso@gmail.com>
This commit is contained in:
BDisp
2020-02-29 16:50:37 +00:00
committed by GitHub
parent a24d29f50a
commit 832ff75973
2 changed files with 5 additions and 5 deletions

View File

@@ -223,7 +223,7 @@ static class Demo {
var d = new OpenDialog ("Open", "Open a file");
Application.Run (d);
MessageBox.Query (50, 7, "Selected File", string.Join (", ", d.FilePaths), "ok");
MessageBox.Query (50, 7, "Selected File", string.Join (", ", d.FilePaths), "Ok");
}
public static void ShowHex (Toplevel top)