From 2e0eed3ab92045fc52ef8fa47ff75cf81b4b8670 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Tue, 2 Apr 2024 14:48:27 +0200 Subject: [PATCH] Dimming hotkeys for Vivobooks --- app/Input/InputDispatcher.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/Input/InputDispatcher.cs b/app/Input/InputDispatcher.cs index 2e4ecca1..c0b94208 100644 --- a/app/Input/InputDispatcher.cs +++ b/app/Input/InputDispatcher.cs @@ -691,6 +691,18 @@ namespace GHelper.Input case 199: // ON Z13 - FN+F11 - cycles backlight SetBacklight(4); return; + case 46: // Fn + F4 Vivobook Brightness down + if (Control.ModifierKeys == Keys.Control && AppConfig.IsOLED()) + { + SetBrightnessDimming(-10); + } + break; + case 47: // Fn + F5 Vivobook Brightness up + if (Control.ModifierKeys == Keys.Control && AppConfig.IsOLED()) + { + SetBrightnessDimming(10); + } + break; } }