Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2feaace4 authored by Ulrich Dangel's avatar Ulrich Dangel Committed by Jiri Kosina
Browse files

HID: Fix the support for apple mini aluminium keyboard



Quirks for the apple mini keyboard was recently added but keyboard
was recognized as a powerbook keyboard. Adjusted boundary to the lowest
product id for the apple mini keyboard to get the right translation.

Signed-off-by: default avatarUlrich Dangel <uli@spamt.net>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 243b706d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -151,7 +151,7 @@ static int hidinput_apple_event(struct hid_device *hid, struct input_dev *input,
	if (fnmode) {
	if (fnmode) {
		int do_translate;
		int do_translate;


		trans = apple_find_translation((hid->product < 0x220 ||
		trans = apple_find_translation((hid->product < 0x21d ||
					hid->product >= 0x300) ?
					hid->product >= 0x300) ?
					powerbook_fn_keys : apple_fn_keys,
					powerbook_fn_keys : apple_fn_keys,
					usage->code);
					usage->code);