File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -21,5 +21,19 @@ private AboutControlViewModel ViewModel
21
21
AboutControl . DataContext = _viewModel ;
22
22
}
23
23
}
24
+
25
+ private void AboutDialog_Load ( object sender , System . EventArgs e )
26
+ {
27
+
28
+ }
29
+ protected override bool ProcessCmdKey ( ref Message msg , Keys keyData )
30
+ {
31
+ if ( keyData == Keys . Escape )
32
+ {
33
+ this . Close ( ) ;
34
+ return true ;
35
+ }
36
+ return base . ProcessCmdKey ( ref msg , keyData ) ;
37
+ }
24
38
}
25
39
}
Original file line number Diff line number Diff line change @@ -29,5 +29,15 @@ public FindSymbolDialog()
29
29
30
30
Text = string . Format ( "Rubberduck - {0}" , RubberduckUI . FindSymbolDialog_Caption ) ;
31
31
}
32
+
33
+ protected override bool ProcessCmdKey ( ref Message msg , Keys keyData )
34
+ {
35
+ if ( keyData == Keys . Escape )
36
+ {
37
+ Close ( ) ;
38
+ return true ;
39
+ }
40
+ return base . ProcessCmdKey ( ref msg , keyData ) ;
41
+ }
32
42
}
33
43
}
You can’t perform that action at this time.
0 commit comments