[PATCH] HID: apple: Add Niz keyboard dongle to non-apple keyboards list

utzcoz posted 1 patch 3 days, 18 hours ago
drivers/hid/hid-apple.c | 1 +
1 file changed, 1 insertion(+)
[PATCH] HID: apple: Add Niz keyboard dongle to non-apple keyboards list
Posted by utzcoz 3 days, 18 hours ago
Niz X99 uses a 2.4GHz wireless dongle (Milsky LL Dongle) that
reports Apple's vendor and product IDs (05ac:0220), causing
hid-apple to apply Apple function key translation. Since the
dongle has no Apple Fn key, F1-F12 become unreachable when fnmode
defaults to media-first behavior.

Add the Milsky LL Dongle to the non_apple_keyboards list so that
fnmode=3 (auto) correctly resolves to fnmode=2, making F1-F12 work
as standard function keys.

Signed-off-by: utzcoz <utzcoz@gmail.com>
---
 drivers/hid/hid-apple.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/hid/hid-apple.c b/drivers/hid/hid-apple.c
index fc5897a6bb53..c29834cfa468 100644
--- a/drivers/hid/hid-apple.c
+++ b/drivers/hid/hid-apple.c
@@ -368,6 +368,7 @@ static const struct apple_non_apple_keyboard non_apple_keyboards[] = {
 	{ "TH87" },			/* EPOMAKER TH87 BT mode */
 	{ "HFD Epomaker TH87" },	/* EPOMAKER TH87 USB mode */
 	{ "2.4G Wireless Receiver" },	/* EPOMAKER TH87 dongle */
+	{ "Milsky LL Dongle" },		/* Niz keyboard dongle */
 };
 
 static bool apple_is_non_apple_keyboard(struct hid_device *hdev)
-- 
2.51.0