Skip to content

Commit 649eeb5

Browse files
committed
Flicker-free dimming for OLED Vivobooks and Zenbooks #4351
1 parent bb3f63e commit 649eeb5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

app/Input/InputDispatcher.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public void RegisterKeys()
148148

149149
if (!AppConfig.Is("skip_hotkeys"))
150150
{
151-
if (AppConfig.IsDUO())
151+
if (AppConfig.IsDUO() || (AppConfig.IsVivoZenbook() && AppConfig.IsOLED()))
152152
{
153153
hook.RegisterHotKey(keyModifierAlt, Keys.F7);
154154
hook.RegisterHotKey(keyModifierAlt, Keys.F8);
@@ -482,10 +482,12 @@ public void KeyPressed(object sender, KeyPressedEventArgs e)
482482
ToggleTouchScreen();
483483
break;
484484
case Keys.F7:
485-
SetScreenpad(-10);
485+
if (AppConfig.IsDUO()) SetScreenpad(-10);
486+
else SetBrightnessDimming(-10);
486487
break;
487488
case Keys.F8:
488-
SetScreenpad(10);
489+
if (AppConfig.IsDUO()) SetScreenpad(10);
490+
else SetBrightnessDimming(10);
489491
break;
490492
case Keys.F13:
491493
ToggleScreenRate();

0 commit comments

Comments
 (0)