Преглед на файлове

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 {