Skip to content

Commit 35949e5

Browse files
committed
Invert FN-Lock for #4661
1 parent 06d08af commit 35949e5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/AppConfig.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ public static bool IsVivoZenPro()
422422

423423
public static bool IsHardwareFnLock()
424424
{
425-
return IsVivoZenPro() || ContainsModel("GZ302EA") || ContainsModel("FA401K");
425+
return IsVivoZenPro() || ContainsModel("GZ302EA");
426426
}
427427

428428
// Devices with bugged bios command to change brightness
@@ -485,7 +485,7 @@ public static bool IsInputBacklight()
485485

486486
public static bool IsInvertedFNLock()
487487
{
488-
return ContainsModel("M140") || ContainsModel("S550") || ContainsModel("P540");
488+
return ContainsModel("M140") || ContainsModel("S550") || ContainsModel("P540") || ContainsModel("FA401KM");
489489
}
490490

491491
public static bool IsOLED()

app/Input/InputDispatcher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ public static bool IsHardwareFnLock()
728728
{
729729
var fnLockStatus = Program.acpi.DeviceGet(AsusACPI.FnLock);
730730
Logger.WriteLine("FnLock Support: " + fnLockStatus);
731-
_fnLock = fnLockStatus > 0;
731+
_fnLock = fnLockStatus >= 0;
732732
}
733733
return (bool)_fnLock;
734734
}

0 commit comments

Comments
 (0)