File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-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 @@ -285,7 +285,8 @@ private async Task OpenResultAsync(string index)
285
285
}
286
286
var hideWindow = await result . ExecuteAsync ( new ActionContext
287
287
{
288
- SpecialKeyState = GlobalHotkey . CheckModifiers ( )
288
+ // not null means pressing modifier key + number, should ignore the modifier key
289
+ SpecialKeyState = index is not null ? SpecialKeyState . Default : GlobalHotkey . CheckModifiers ( )
289
290
} )
290
291
. ConfigureAwait ( false ) ;
291
292
You can’t perform that action at this time.
0 commit comments