From d57369c52f10625b49a0357e2a6a545cc8e64229 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Sun, 12 Jan 2025 16:32:48 +0100 Subject: [PATCH] Removed unsupported bindings for Vivo/Zenbooks and ProArt #3585 --- app/Extra.cs | 9 +++++++++ app/Input/InputDispatcher.cs | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/app/Extra.cs b/app/Extra.cs index f0c93bac..4d7438c4 100644 --- a/app/Extra.cs +++ b/app/Extra.cs @@ -206,6 +206,15 @@ public Extra() labelFNF4.Visible = comboFNF4.Visible = textFNF4.Visible = false; } + if (AppConfig.IsVivoZenPro()) + { + labelM1.Visible = comboM1.Visible = textM1.Visible = false; + labelM2.Visible = comboM2.Visible = textM2.Visible = false; + labelM3.Visible = comboM3.Visible = textM3.Visible = false; + labelFNF4.Visible = comboFNF4.Visible = textFNF4.Visible = false; + labelM4.Text = "FN+F12"; + } + if (AppConfig.MediaKeys()) { labelFNF4.Visible = comboFNF4.Visible = textFNF4.Visible = false; diff --git a/app/Input/InputDispatcher.cs b/app/Input/InputDispatcher.cs index d417060c..d7c51e9f 100644 --- a/app/Input/InputDispatcher.cs +++ b/app/Input/InputDispatcher.cs @@ -152,7 +152,7 @@ public void RegisterKeys() hook.RegisterHotKey(ModifierKeys.Shift | ModifierKeys.Control, Keys.F20); } - if (!AppConfig.IsZ13() && !AppConfig.IsAlly()) + if (!AppConfig.IsZ13() && !AppConfig.IsAlly() && !AppConfig.IsVivoZenPro()) { if (actionM1 is not null && actionM1.Length > 0) hook.RegisterHotKey(ModifierKeys.None, Keys.VolumeDown); if (actionM2 is not null && actionM2.Length > 0) hook.RegisterHotKey(ModifierKeys.None, Keys.VolumeUp);