We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c46ade2 commit 721fbdcCopy full SHA for 721fbdc
1 file changed
src/ImageSort.WPF/MainWindow.xaml.cs
@@ -19,6 +19,7 @@
19
using ImageSort.WPF.Views;
20
using ImageSort.WPF.Views.Credits;
21
using ReactiveUI;
22
+using ReactiveMarbles.ObservableEvents;
23
using Splat;
24
using Application = System.Windows.Application;
25
using KeyEventArgs = System.Windows.Input.KeyEventArgs;
@@ -118,7 +119,7 @@ public MainWindow()
118
119
.Select(kv => kv.Value)
120
.OfType<Hotkey>();
121
- var reservedKeysPressed = this.Events.PreviewKeyDown
122
+ var reservedKeysPressed = this.Events().PreviewKeyDown
123
.Where(_ => interceptReservedKeys)
124
.Where(_ => !(Keyboard.FocusedElement is TextBox))
125
.Where(k => reservedKeys.Contains(new Hotkey(k.Key, Keyboard.Modifiers)))
0 commit comments