From 543f80fac5cfe02a88b70297545ffafc97bb87bf Mon Sep 17 00:00:00 2001 From: "dima.am" Date: Fri, 10 Jan 2025 12:36:44 +0500 Subject: [PATCH] Close key on window can be null - needed for turning off closing by key --- src/Myra/Graphics2D/UI/Misc/Window.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Myra/Graphics2D/UI/Misc/Window.cs b/src/Myra/Graphics2D/UI/Misc/Window.cs index 9341e650..92230a2c 100644 --- a/src/Myra/Graphics2D/UI/Misc/Window.cs +++ b/src/Myra/Graphics2D/UI/Misc/Window.cs @@ -144,7 +144,7 @@ public override VerticalAlignment VerticalAlignment [Category("Behavior")] [DefaultValue(Keys.Escape)] - public Keys CloseKey { get; set; } + public Keys? CloseKey { get; set; } private bool IsWindowPlaced { get; set; }