Skip to content

Commit dfecf8b

Browse files
committed
changed duplicated LeftCtrl to RightCtrl Key name
added Debugger.Launch() at run for the Debug version
1 parent 93f9cb6 commit dfecf8b

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

AnalyzeInExcel/App.xaml.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void CheckUpdates(bool synchronous = true)
4848
protected void InitializeOptionRequested()
4949
{
5050
// Pressing CTRL (left or right) when the external tool is launched activates the option window
51-
OptionsRequested = System.Windows.Input.Keyboard.IsKeyDown(Key.LeftCtrl) || System.Windows.Input.Keyboard.IsKeyDown(Key.LeftCtrl);
51+
OptionsRequested = System.Windows.Input.Keyboard.IsKeyDown(Key.LeftCtrl) || System.Windows.Input.Keyboard.IsKeyDown(Key.RightCtrl);
5252
}
5353

5454
public MessageBoxResult ShowMessage( string message )
@@ -62,6 +62,11 @@ public MessageBoxResult ShowMessageQuestion(string message)
6262

6363
protected override void OnStartup(StartupEventArgs e)
6464
{
65+
66+
#if DEBUG
67+
System.Diagnostics.Debugger.Launch();
68+
#endif
69+
6570
// Store request to access options
6671
InitializeOptionRequested();
6772

0 commit comments

Comments
 (0)