Unit tests pass. Most things actually work, but not all

This commit is contained in:
Tig
2024-12-05 13:15:41 -07:00
parent 80db8e6036
commit 53d7449c85
18 changed files with 773 additions and 712 deletions

View File

@@ -86,15 +86,24 @@ public class EventLog : ListView
_viewToLog.HandlingHotKey += (s, args) =>
{
Log ($"HandlingHotKey: {args.Context.Command} {args.Context.Data}");
if (args.Context is CommandContext<KeyBinding> keyCommandContext)
{
Log ($"HandlingHotKey: {args.Context.Command} {keyCommandContext.Binding.Data}");
}
};
_viewToLog.Selecting += (s, args) =>
{
Log ($"Selecting: {args.Context.Command} {args.Context.Data}");
if (args.Context is CommandContext<KeyBinding> keyCommandContext)
{
Log ($"Selecting: {args.Context.Command} {keyCommandContext.Binding.Data}");
}
};
_viewToLog.Accepting += (s, args) =>
{
Log ($"Accepting: {args.Context.Command} {args.Context.Data}");
if (args.Context is CommandContext<KeyBinding> keyCommandContext)
{
Log ($"Accepting: {args.Context.Command} {keyCommandContext.Binding.Data}");
}
};
}
}