From 61da25aa581d2d7994b9d727b5e6f9419df68c8a Mon Sep 17 00:00:00 2001 From: Siarhei Vishniakou Date: Thu, 15 Feb 2018 21:04:49 -0600 Subject: Move SPECIAL_FUNCTION from .kcm to .idc files Currently, the only use of device-specific .kcm files is to specify SPECIAL_FUNCTION flag (meaning that this keyboard is only used to perform system control functions and not for typing). Instead of adding a special .kcm file, use .idc files with se keyboard.specialFunction = 1 to achieve the same functionality. This allows the removal of all device-specific .kcm files. The .kcm functionality will remain in P (with a warning). The functionality will be removed in Q. Bug: 67718661 Test: tested the codepath on Android wear device via logging Change-Id: I1b4572456fa42caae1282dd8d3557820671b3610 --- include/input/KeyCharacterMap.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/input/KeyCharacterMap.h') diff --git a/include/input/KeyCharacterMap.h b/include/input/KeyCharacterMap.h index 79359277c7..33d2757ec8 100644 --- a/include/input/KeyCharacterMap.h +++ b/include/input/KeyCharacterMap.h @@ -51,6 +51,9 @@ public: KEYBOARD_TYPE_PREDICTIVE = 2, KEYBOARD_TYPE_ALPHA = 3, KEYBOARD_TYPE_FULL = 4, + /** + * Deprecated. Set 'keyboard.specialFunction' to '1' in the device's IDC file instead. + */ KEYBOARD_TYPE_SPECIAL_FUNCTION = 5, KEYBOARD_TYPE_OVERLAY = 6, }; -- cgit v1.2.3-59-g8ed1b