ソースを参照

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 {