TASK 20 step 1: global hotkeys F1-F9 (scenes, stream, mutes, TRAX)

This commit is contained in:
2026-08-24 09:32:54 -07:00
parent b899ff053f
commit b0bace7432
7 changed files with 286 additions and 14 deletions
+10
View File
@@ -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)