TASK 20 step 1: global hotkeys F1-F9 (scenes, stream, mutes, TRAX)
This commit is contained in:
@@ -37,6 +37,16 @@ public partial class MainWindow : Window
|
||||
AppLog.Write("MainWindow loaded");
|
||||
}
|
||||
|
||||
private ytLive.Services.GlobalHotkeyManager? _hotkeys;
|
||||
|
||||
protected override void OnSourceInitialized(EventArgs e)
|
||||
{
|
||||
base.OnSourceInitialized(e);
|
||||
_hotkeys = new ytLive.Services.GlobalHotkeyManager();
|
||||
_hotkeys.Activated += id => _viewModel.HandleHotkey(id);
|
||||
_hotkeys.Attach(this);
|
||||
}
|
||||
|
||||
private void Window_ContextMenuOpening(object sender, ContextMenuEventArgs e)
|
||||
{
|
||||
if (!_viewModel.IsEditMode)
|
||||
|
||||
Reference in New Issue
Block a user