Application Contexts support keybindings now

This commit is contained in:
Michael Becker 2019-11-08 23:44:46 -05:00
parent 8085cbea3d
commit d6c5ed5b52
No known key found for this signature in database
GPG Key ID: 389DFF5D73781A12
2 changed files with 5 additions and 0 deletions

View File

@ -43,6 +43,10 @@ namespace UniversalEditor.UserInterface
{
MenuItems.Add(reference.MenuBar.Items[i]);
}
for (int i = 0; i < reference.KeyBindings.Count; i++)
{
KeyBindings.Add(reference.KeyBindings[i]);
}
}
}
}

View File

@ -25,6 +25,7 @@ namespace UniversalEditor.UserInterface
public CommandBar MenuBar { get; } = new CommandBar();
public Command.CommandCollection Commands { get; } = new Command.CommandCollection();
public KeyBinding.KeyBindingCollection KeyBindings { get; } = new KeyBinding.KeyBindingCollection();
public EditorView.EditorViewCollection Views { get; } = new EditorView.EditorViewCollection();