Skip to content

Commit 7cd5a10

Browse files
committed
HID: apple: add Fn key mapping for Macbook Pro with touchbar
Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 895e6c2 commit 7cd5a10

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/hid/hid-apple.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,9 @@ static int hidinput_apple_event(struct hid_device *hid, struct input_dev *input,
498498
else if (hid->product >= USB_DEVICE_ID_APPLE_WELLSPRING4_ANSI &&
499499
hid->product <= USB_DEVICE_ID_APPLE_WELLSPRING4A_JIS)
500500
table = macbookair_fn_keys;
501+
else if (hid->vendor == SPI_VENDOR_ID_APPLE &&
502+
hid->product == SPI_DEVICE_ID_APPLE_MACBOOK_PRO13_2020)
503+
table = macbookpro_dedicated_esc_fn_keys;
501504
else if (hid->vendor == SPI_VENDOR_ID_APPLE)
502505
table = apple2021_fn_keys;
503506
else if (hid->product < 0x21d || hid->product >= 0x300)

0 commit comments

Comments
 (0)