2
0
Эх сурвалжийг харах

Ensures the event SelectedChanged gets fired if the lastSelectedItem == -1.

BDisp 5 жил өмнө
parent
commit
8582017b13

+ 11 - 0
Terminal.Gui/Views/ListView.cs

@@ -529,6 +529,17 @@ namespace Terminal.Gui {
 			return true;
 		}
 
+		///<inheritdoc/>
+		public override bool OnEnter (View view)
+		{
+			if (lastSelectedItem == -1) {
+				OnSelectedChanged ();
+				return true;
+			}
+
+			return false;
+		}
+
 		///<inheritdoc/>
 		public override void PositionCursor ()
 		{