This commit is contained in:
Serge
2023-10-18 11:18:53 +02:00
parent c978c94d59
commit 8a12e84423
3 changed files with 5 additions and 4 deletions

View File

@@ -588,7 +588,8 @@ namespace GHelper.Input
case 199: // ON Z13 - FN+F11 - cycles backlight case 199: // ON Z13 - FN+F11 - cycles backlight
SetBacklight(4); SetBacklight(4);
return; return;
case 53: // FN+F6 on GA-502DU model case 51: // Fn+F6 on old TUFs
case 53: // Fn+F6 on GA-502DU model
NativeMethods.TurnOffScreen(); NativeMethods.TurnOffScreen();
return; return;
} }

View File

@@ -319,7 +319,7 @@ namespace GHelper
sliderBattery.Max = 100; sliderBattery.Max = 100;
sliderBattery.Min = 40; sliderBattery.Min = 40;
sliderBattery.Name = "sliderBattery"; sliderBattery.Name = "sliderBattery";
sliderBattery.Size = new Size(716, 40); sliderBattery.Size = new Size(706, 40);
sliderBattery.Step = 5; sliderBattery.Step = 5;
sliderBattery.TabIndex = 20; sliderBattery.TabIndex = 20;
sliderBattery.Text = "sliderBattery"; sliderBattery.Text = "sliderBattery";

View File

@@ -884,8 +884,8 @@ namespace GHelper
/// <returns>Focus state</returns> /// <returns>Focus state</returns>
public bool HasAnyFocus(bool lostFocusCheck = false) public bool HasAnyFocus(bool lostFocusCheck = false)
{ {
return (fansForm != null && fansForm.ContainsFocus) || return (fansForm != null && fansForm.ContainsFocus) ||
(extraForm != null && extraForm.ContainsFocus) || (extraForm != null && extraForm.ContainsFocus) ||
(updatesForm != null && updatesForm.ContainsFocus) || (updatesForm != null && updatesForm.ContainsFocus) ||
(matrixForm != null && matrixForm.ContainsFocus) || (matrixForm != null && matrixForm.ContainsFocus) ||
this.ContainsFocus || this.ContainsFocus ||