mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-29 09:18:01 +01:00
Ensures the event SelectedChanged gets fired if the lastSelectedItem == -1.
This commit is contained in:
@@ -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 ()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user