mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
Refactored View command handling
This commit is contained in:
@@ -444,7 +444,7 @@ public class TreeView<T> : View, ITreeView where T : class
|
||||
public bool? ActivateSelectedObjectIfAny ()
|
||||
{
|
||||
// By default, Command.Accept calls OnAccept, so we need to call it here to ensure that the event is fired.
|
||||
if (OnAccept () == true)
|
||||
if (RaiseAcceptEvent () == true)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user