We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e5e213 commit b096944Copy full SHA for b096944
Flow.Launcher.Plugin/ActionContext.cs
@@ -1,4 +1,6 @@
1
-namespace Flow.Launcher.Plugin
+using System.Windows.Input;
2
+
3
+namespace Flow.Launcher.Plugin
4
{
5
public class ActionContext
6
@@ -11,5 +13,13 @@ public class SpecialKeyState
11
13
public bool ShiftPressed { get; set; }
12
14
public bool AltPressed { get; set; }
15
public bool WinPressed { get; set; }
16
17
+ public ModifierKeys ToModifierKeys()
18
+ {
19
+ return (CtrlPressed ? ModifierKeys.Control : ModifierKeys.None) |
20
+ (ShiftPressed ? ModifierKeys.Shift : ModifierKeys.None) |
21
+ (AltPressed ? ModifierKeys.Alt : ModifierKeys.None) |
22
+ (WinPressed ? ModifierKeys.Windows : ModifierKeys.None);
23
+ }
24
}
-}
25
+}
0 commit comments