Skip to content

Commit 7f84e24

Browse files
JoseExpositoJiri Kosina
authored andcommitted
HID: apple: Add Magic Keyboard 2021 with fingerprint reader FN key mapping
Use the function key table introduced for the Magic Keyboard 2021 without fingerprint reader in the models with fingerprint reader and/or numpad. Tested with the ANSI variant of the keyboard with and without numpad. Signed-off-by: José Expósito <jose.exposito89@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent 531cb56 commit 7f84e24

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

drivers/hid/hid-apple.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,9 @@ static int hidinput_apple_event(struct hid_device *hid, struct input_dev *input,
242242
}
243243

244244
if (fnmode) {
245-
if (hid->product == USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_2021)
245+
if (hid->product == USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_2021 ||
246+
hid->product == USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_FINGERPRINT_2021 ||
247+
hid->product == USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_NUMPAD_2021)
246248
table = apple2021_fn_keys;
247249
else if (hid->product >= USB_DEVICE_ID_APPLE_WELLSPRING4_ANSI &&
248250
hid->product <= USB_DEVICE_ID_APPLE_WELLSPRING4A_JIS)

0 commit comments

Comments
 (0)