Преглед изворни кода

Clear the TextField selected text when loses focus.

BDisp пре 5 година
родитељ
комит
07a92f989e
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      Terminal.Gui/Views/TextField.cs

+ 2 - 0
Terminal.Gui/Views/TextField.cs

@@ -85,6 +85,8 @@ namespace Terminal.Gui {
 		{
 			if (Application.mouseGrabView != null && Application.mouseGrabView == this)
 				Application.UngrabMouse ();
+			if (SelectedLength != 0)
+				ClearAllSelection ();
 		}
 
 		public override Rect Frame {