Skip to content

Commit afdb5cc

Browse files
jwrdegoedeJiri Kosina
authored andcommitted
HID: input: Map unknown consumer page codes to KEY_UNKNOWN
Currently unknown consumer page codes are ignored, which means that they cannot later be mapped from userspace using udev / hwdb. Map them to KEY_UNKNOWN, so that userspace can remap them for keyboards which make up their own consumer page codes. Signed-off-by: Hans de Goede <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 39520ee commit afdb5cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/hid-input.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
862862
case 0x28b: map_key_clear(KEY_FORWARDMAIL); break;
863863
case 0x28c: map_key_clear(KEY_SEND); break;
864864

865-
default: goto ignore;
865+
default: map_key_clear(KEY_UNKNOWN);
866866
}
867867
break;
868868

0 commit comments

Comments
 (0)