History

HID: add mapping for KEY_DICTATE

Numerous keyboards are adding dictate keys which allows for text messages to be dictated by a microphone. This patch adds a new key definition KEY_DICTATE and maps 0x0c/0x0d8 usage code to this new keycode. Additionally hid-debug is adjusted to recognize this new usage code as well.

William Mahon committed 4 years ago

Commit bfa26ba1 parent 04b77623 files · +3 −0Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/linux/input-event-codes.h+1−0
@@ -612,6 +612,7 @@ · 611 unmodified lines
612612 #define KEY_ASSISTANT 0x247 /* AL Context-aware desktop assistant */
613613 #define KEY_KBD_LAYOUT_NEXT 0x248 /* AC Next Keyboard Layout Select */
614614 #define KEY_EMOJI_PICKER 0x249 /* Show/hide emoji picker (HUTRR101) */
615+#define KEY_DICTATE 0x24a /* Start or Stop Voice Dictation Session (HUTRR99) */
615616
616617 #define KEY_BRIGHTNESS_MIN 0x250 /* Set Brightness to Minimum */
617618 #define KEY_BRIGHTNESS_MAX 0x251 /* Set Brightness to Maximum */