Skip to content

Commit b7a7f1c

Browse files
committed
Reverted Activate WIP code
1 parent a3316ca commit b7a7f1c

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

Terminal.Gui/ViewBase/View.Command.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@ private void SetupCommands ()
164164

165165
if (SuperView is { })
166166
{
167-
Logging.Debug ($"{Title} ({ctx?.Source?.Title}) - Invoking {ctx!.Command} on SuperView ({SuperView.Title}/{SuperView.Id})...");
167+
Logging.Debug ($"{Title} ({ctx?.Source?.Title}) - Invoking {Command.Accept} on SuperView ({SuperView.Title}/{SuperView.Id})...");
168168

169-
return SuperView?.InvokeCommand (ctx!.Command, ctx);
169+
return SuperView?.InvokeCommand (Command.Accept, ctx);
170170
}
171171
}
172172

@@ -280,17 +280,17 @@ public interface IDefaultAcceptView
280280
// If the event is not canceled by the virtual method, raise the event to notify any external subscribers.
281281
Activating?.Invoke (this, args);
282282

283-
// Activate is a special case where if the event is not canceled, the event is
284-
// - propagated up the SuperView hierarchy.
285-
if (!args.Handled)
286-
{
287-
if (SuperView is { })
288-
{
289-
Logging.Debug ($"{Title} ({ctx?.Source?.Title}) - Invoking {ctx!.Command} on SuperView ({SuperView.Title}/{SuperView.Id})...");
290-
291-
return SuperView?.InvokeCommand (ctx!.Command, ctx);
292-
}
293-
}
283+
//// Activate is a special case where if the event is not canceled, the event is
284+
//// - propagated up the SuperView hierarchy.
285+
//if (!args.Handled)
286+
//{
287+
// if (SuperView is { })
288+
// {
289+
// Logging.Debug ($"{Title} ({ctx?.Source?.Title}) - Invoking {ctx!.Command} on SuperView ({SuperView.Title}/{SuperView.Id})...");
290+
291+
// return SuperView?.InvokeCommand (ctx!.Command, ctx);
292+
// }
293+
//}
294294

295295
return Activating is null ? null : args.Handled;
296296
}

0 commit comments

Comments
 (0)