Skip to content

Commit 6660bb2

Browse files
authored
Fix brightness keys (#367)
1 parent 7a18002 commit 6660bb2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

MTMR/ItemsParsing.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class SupportedTypesHolder {
7979
return (
8080
item: .staticButton(title: ""),
8181
actions: [
82-
Action(trigger: .singleTap, value: .keyPress(keycode: 144))
82+
Action(trigger: .singleTap, value: .hidKey(keycode: NX_KEYTYPE_BRIGHTNESS_UP))
8383
],
8484
legacyAction: .none,
8585
legacyLongAction: .none,
@@ -92,7 +92,7 @@ class SupportedTypesHolder {
9292
return (
9393
item: .staticButton(title: ""),
9494
actions: [
95-
Action(trigger: .singleTap, value: .keyPress(keycode: 145))
95+
Action(trigger: .singleTap, value: .hidKey(keycode: NX_KEYTYPE_BRIGHTNESS_DOWN))
9696
],
9797
legacyAction: .none,
9898
legacyLongAction: .none,

0 commit comments

Comments
 (0)