diff --git a/Views/MainWindow.axaml.cs b/Views/MainWindow.axaml.cs index 0a86ffe..cef621d 100644 --- a/Views/MainWindow.axaml.cs +++ b/Views/MainWindow.axaml.cs @@ -19,6 +19,16 @@ public partial class MainWindow : Window DataContext = new MainWindowViewModel(); Topmost = true; Topmost = false; + + this.KeyUp += OnKeyUp; + } + + private void OnKeyUp(object? sender, KeyEventArgs e) + { + if (DataContext is MainWindowViewModel vm) + { + vm.GlobalKeyUpHandler(e); + } } // MVVM like implementations burst the bounds -> implemented the old school way