TASK 20 step 2: hotkey config UI + modifier chord persistence + conflict detection
This commit is contained in:
+2
-1
@@ -94,7 +94,8 @@ public partial class MainWindow : Window
|
||||
base.OnSourceInitialized(e);
|
||||
_hotkeys = new ytLive.Services.GlobalHotkeyManager();
|
||||
_hotkeys.Activated += id => _viewModel.HandleHotkey(id);
|
||||
_hotkeys.Attach(this);
|
||||
_hotkeys.Attach(this, _viewModel.CurrentHotkeyBindings);
|
||||
_viewModel.HotkeyBindingsChanged = bindings => _hotkeys.Reattach(this, bindings);
|
||||
}
|
||||
|
||||
private void Window_ContextMenuOpening(object sender, ContextMenuEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user