Skip to content

Commit

Permalink
Removed unsupported key-binding options for Vivobooks, Zenbooks and P…
Browse files Browse the repository at this point in the history
…roPart models
  • Loading branch information
seerge committed Jan 12, 2025
1 parent d04c417 commit 959df5f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions app/Extra.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion app/Input/InputDispatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 959df5f

Please sign in to comment.