mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
whitespace changes (#5750)
This commit is contained in:
@@ -34,6 +34,7 @@ namespace PowerLauncher.Helper
|
||||
{
|
||||
// handle ui thread exceptions
|
||||
Report(e?.Exception);
|
||||
|
||||
// prevent application exist, so the user can copy prompted error info
|
||||
e.Handled = true;
|
||||
}
|
||||
|
||||
@@ -17,21 +17,25 @@ namespace PowerLauncher.Helper
|
||||
{
|
||||
state.ShiftPressed = true;
|
||||
}
|
||||
|
||||
if ((Keyboard.GetKeyStates(Key.LWin) & KeyStates.Down) > 0 ||
|
||||
(Keyboard.GetKeyStates(Key.RWin) & KeyStates.Down) > 0)
|
||||
{
|
||||
state.WinPressed = true;
|
||||
}
|
||||
|
||||
if ((Keyboard.GetKeyStates(Key.LeftCtrl) & KeyStates.Down) > 0 ||
|
||||
(Keyboard.GetKeyStates(Key.RightCtrl) & KeyStates.Down) > 0)
|
||||
{
|
||||
state.CtrlPressed = true;
|
||||
}
|
||||
|
||||
if ((Keyboard.GetKeyStates(Key.LeftAlt) & KeyStates.Down) > 0 ||
|
||||
(Keyboard.GetKeyStates(Key.RightAlt) & KeyStates.Down) > 0)
|
||||
{
|
||||
state.AltPressed = true;
|
||||
}
|
||||
|
||||
return state;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,6 +44,5 @@ namespace PowerLauncher.Helper
|
||||
{
|
||||
CollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -188,6 +188,7 @@ namespace PowerLauncher.Helper
|
||||
{
|
||||
throw new Win32Exception();
|
||||
}
|
||||
|
||||
var result = new string[numArgs];
|
||||
|
||||
for (int i = 0; i < numArgs; i++)
|
||||
@@ -201,11 +202,11 @@ namespace PowerLauncher.Helper
|
||||
finally
|
||||
{
|
||||
IntPtr p = _LocalFree(argv);
|
||||
|
||||
// Otherwise LocalFree failed.
|
||||
// Assert.AreEqual(IntPtr.Zero, p);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public interface ISingleInstanceApp
|
||||
@@ -359,6 +360,7 @@ namespace PowerLauncher.Helper
|
||||
// Do an asynchronous call to ActivateFirstInstance function
|
||||
Application.Current.Dispatcher.Invoke(ActivateFirstInstance);
|
||||
}
|
||||
|
||||
// Disconnect client
|
||||
pipeServer.Disconnect();
|
||||
}
|
||||
|
||||
@@ -186,6 +186,7 @@ namespace PowerLauncher.Helper
|
||||
matrix = src.CompositionTarget.TransformFromDevice;
|
||||
}
|
||||
}
|
||||
|
||||
return new Point((int)(matrix.M11 * unitX), (int)(matrix.M22 * unitY));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user