From 950d082fc3e480f0f2d33b0d73f017fa7a91c2aa Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Sat, 3 Aug 2024 12:18:09 +0200 Subject: [PATCH] Media hotkeys for G712LU https://github.com/seerge/g-helper/issues/2897 --- app/AppConfig.cs | 5 +++++ app/Extra.cs | 2 +- app/Input/InputDispatcher.cs | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/AppConfig.cs b/app/AppConfig.cs index f46be871..96544008 100644 --- a/app/AppConfig.cs +++ b/app/AppConfig.cs @@ -395,6 +395,11 @@ public static class AppConfig return ContainsModel("GA401I") && !ContainsModel("GA401IHR"); } + public static bool MediaKeys() + { + return NoAura() || ContainsModel("G712LU"); + } + public static bool IsSingleColor() { return ContainsModel("GA401") || ContainsModel("FX517Z") || ContainsModel("FX516P") || ContainsModel("X13") || IsARCNM() || ContainsModel("GA502IU"); diff --git a/app/Extra.cs b/app/Extra.cs index 365d6502..e502b707 100644 --- a/app/Extra.cs +++ b/app/Extra.cs @@ -203,7 +203,7 @@ namespace GHelper labelFNF4.Visible = comboFNF4.Visible = textFNF4.Visible = false; } - if (AppConfig.NoAura()) + if (AppConfig.MediaKeys()) { labelFNF4.Visible = comboFNF4.Visible = textFNF4.Visible = false; } diff --git a/app/Input/InputDispatcher.cs b/app/Input/InputDispatcher.cs index 80c4a777..154baac3 100644 --- a/app/Input/InputDispatcher.cs +++ b/app/Input/InputDispatcher.cs @@ -291,7 +291,7 @@ namespace GHelper.Input } } - if (AppConfig.NoAura()) + if (AppConfig.MediaKeys()) { switch (e.Key) {