mirror of
https://github.com/MathiasLui/CSGO-Projects.git
synced 2025-05-06 22:01:18 +00:00
Allow other keys for other controls than the main window and only keep space for itself
This commit is contained in:
parent
20c7a8f126
commit
7993560691
12 changed files with 14 additions and 8 deletions
Binary file not shown.
|
@ -1043,14 +1043,20 @@ namespace Damage_Calculator
|
|||
|
||||
// Pass it on for spacebar pan start
|
||||
this.rightZoomBorder.KeyDown(sender, e);
|
||||
e.Handled = true;
|
||||
|
||||
if(e.Key == Key.Space)
|
||||
// We want space for us alone, so give no child element a piece of dat cake
|
||||
e.Handled = true;
|
||||
}
|
||||
|
||||
private void Window_PreviewKeyUp(object sender, KeyEventArgs e)
|
||||
{
|
||||
// Pass it on for spacebar pan stop
|
||||
this.rightZoomBorder.KeyUp(sender, e);
|
||||
e.Handled = true;
|
||||
|
||||
if (e.Key == Key.Space)
|
||||
// We want space for us alone, so give no child element a piece of dat cake
|
||||
e.Handled = true;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "520310F22F68AE4E47B66F6D92CC98AD8018EE1647882A1C45F9B52AC540A4BB"
|
||||
#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "27FCD8BFBBC438E9A51021C3BEB68479D527817CDA486F3B2805D4C67A922CFB"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
|
@ -422,13 +422,13 @@ namespace Damage_Calculator {
|
|||
#line hidden
|
||||
|
||||
#line 13 "..\..\MainWindow.xaml"
|
||||
((Damage_Calculator.MainWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown);
|
||||
((Damage_Calculator.MainWindow)(target)).PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.Window_PreviewKeyDown);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 14 "..\..\MainWindow.xaml"
|
||||
((Damage_Calculator.MainWindow)(target)).KeyUp += new System.Windows.Input.KeyEventHandler(this.Window_KeyUp);
|
||||
((Damage_Calculator.MainWindow)(target)).PreviewKeyUp += new System.Windows.Input.KeyEventHandler(this.Window_PreviewKeyUp);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "520310F22F68AE4E47B66F6D92CC98AD8018EE1647882A1C45F9B52AC540A4BB"
|
||||
#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "27FCD8BFBBC438E9A51021C3BEB68479D527817CDA486F3B2805D4C67A922CFB"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
|
@ -422,13 +422,13 @@ namespace Damage_Calculator {
|
|||
#line hidden
|
||||
|
||||
#line 13 "..\..\MainWindow.xaml"
|
||||
((Damage_Calculator.MainWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown);
|
||||
((Damage_Calculator.MainWindow)(target)).PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.Window_PreviewKeyDown);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 14 "..\..\MainWindow.xaml"
|
||||
((Damage_Calculator.MainWindow)(target)).KeyUp += new System.Windows.Input.KeyEventHandler(this.Window_KeyUp);
|
||||
((Damage_Calculator.MainWindow)(target)).PreviewKeyUp += new System.Windows.Input.KeyEventHandler(this.Window_PreviewKeyUp);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
|
Loading…
Add table
Reference in a new issue