Magic Keyboard 2021 with fingerprint reader FN key mapping
cover Magic Keyboard 2021 with fingerprint reader FN key mapping
Hi all,
This patch is meant to be applied after [1] and [2].
Thanks a lot in advance,
José Expósito
[1] https://lore.kernel.org/linux-input/[email protected]/T/
[2] https://lore.kernel.org/linux-input/CAMMLpeSdmc1Ti4EZ9Tm7eq3a3+u46TEMWSaqD=USSnSRnZMYTg@mail.gmail.com/T/
José Expósito (1):
HID: apple: Add Magic Keyboard 2021 with fingerprint reader FN key
mapping
drivers/hid/hid-apple.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Signature · 1 line
2.25.1
PATCH 1/1 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.
--- drivers/hid/hid-apple.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/hid/hid-apple.c +3 -1
@@ -242,7 +242,9 @@ static int hidinput_apple_event(struct hid_device *hid, struct input_dev *input, }if (fnmode) { -if (hid->product ==USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_2021 ) +if (hid->product ==USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_2021 || + hid->product ==USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_FINGERPRINT_2021 || + hid->product ==USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_NUMPAD_2021 ) table = apple2021_fn_keys;else if (hid->product >=USB_DEVICE_ID_APPLE_WELLSPRING4_ANSI && hid->product <=USB_DEVICE_ID_APPLE_WELLSPRING4A_JIS )
Signature · 1 line
2.25.1
Quoted 3 lines · José Expósito
Hi all,
This patch is meant to be applied after [1] and [2].
Applied, together with Benjamin's original 2021 keyboard mappings.
Signature · 2 lines
Jiri Kosina SUSE Labs