File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -50,5 +50,12 @@ public ModifierKeys ToModifierKeys()
50
50
( AltPressed ? ModifierKeys . Alt : ModifierKeys . None ) |
51
51
( WinPressed ? ModifierKeys . Windows : ModifierKeys . None ) ;
52
52
}
53
+
54
+ public static readonly SpecialKeyState Default = new ( ) {
55
+ CtrlPressed = false ,
56
+ ShiftPressed = false ,
57
+ AltPressed = false ,
58
+ WinPressed = false
59
+ } ;
53
60
}
54
61
}
Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ private async Task OpenResultAsync(string index)
286
286
var hideWindow = await result . ExecuteAsync ( new ActionContext
287
287
{
288
288
// not null means pressing modifier key + number, should ignore the modifier key
289
- SpecialKeyState = index is not null ? new SpecialKeyState ( ) : GlobalHotkey . CheckModifiers ( )
289
+ SpecialKeyState = index is not null ? SpecialKeyState . Default : GlobalHotkey . CheckModifiers ( )
290
290
} )
291
291
. ConfigureAwait ( false ) ;
292
292
You can’t perform that action at this time.
0 commit comments