mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
Fixed Dialog & Messagebox
This commit is contained in:
@@ -443,10 +443,10 @@ public class TreeView<T> : View, ITreeView where T : class
|
||||
/// <para>This method also ensures that the selected object is visible.</para>
|
||||
/// </summary>
|
||||
/// <returns><see langword="true"/> if <see cref="ObjectActivated"/> was fired.</returns>
|
||||
public bool? ActivateSelectedObjectIfAny ()
|
||||
public bool? ActivateSelectedObjectIfAny (CommandContext ctx)
|
||||
{
|
||||
// By default, Command.Accept calls OnAccept, so we need to call it here to ensure that the event is fired.
|
||||
if (RaiseAccepting () == true)
|
||||
if (RaiseAccepting (ctx) == true)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user