From 6c984953eaaa1cfba860d97b5c49f00b3541225e Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Thu, 16 Jul 2020 18:22:44 -0700 Subject: [PATCH] Add KEYCODE_CAPTIONS mapping to LKC KEY_SUBTITLE From https://github.com/torvalds/linux/blob/master/include/uapi/linux/input-event-codes.h, KEY_SUBTITLE is near the TV codes. Note that 0x172 == 370. #define KEY_CHANNEL 0x16b #define KEY_FAVORITES 0x16c #define KEY_EPG 0x16d #define KEY_PVR 0x16e /* Media Select Home */ #define KEY_MHP 0x16f #define KEY_LANGUAGE 0x170 #define KEY_TITLE 0x171 #define KEY_SUBTITLE 0x172 #define KEY_ANGLE 0x173 #define KEY_FULL_SCREEN 0x174 /* AC View Toggle */ #define KEY_ZOOM KEY_FULL_SCREEN You can also see on https://www.kernel.org/doc/html/v4.9/media/uapi/rc/rc-tables.html it is listed in the "Movie play control" section: KEY_SUBTITLE Allow changing the subtitle Change-Id: I7690269cddd00b787a939f87ba651db38f1160ac Signed-off-by: Aman Gupta --- data/keyboards/Generic.kl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/keyboards/Generic.kl b/data/keyboards/Generic.kl index e0fca1e044dfb..9b45d7f04e610 100644 --- a/data/keyboards/Generic.kl +++ b/data/keyboards/Generic.kl @@ -317,7 +317,7 @@ key 366 DVR # key 367 "KEY_MHP" # key 368 "KEY_LANGUAGE" # key 369 "KEY_TITLE" -# key 370 "KEY_SUBTITLE" +key 370 CAPTIONS # key 371 "KEY_ANGLE" # key 372 "KEY_ZOOM" # key 373 "KEY_MODE"