Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ea87002

Browse files
committedDec 6, 2019
input: Remap "Recents" button to "Back" for Hybris
1 parent 2d3863a commit ea87002

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎drivers/input/touchscreen/synaptics_driver_s3320.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ struct test_header {
177177

178178
// Button key codes
179179
#define KEY_BUTTON_LEFT KEY_BACK
180-
#define KEY_BUTTON_RIGHT KEY_APPSELECT
180+
#define KEY_BUTTON_RIGHT KEY_BACK
181181

182182
/*********************for Debug LOG switch*******************/
183183
#define TPD_ERR(a, arg...) pr_err(TPD_DEVICE ": " a, ##arg)
@@ -1563,11 +1563,11 @@ void int_touch(void)
15631563
mutex_unlock(&ts->mutexreport);
15641564
}
15651565
#ifdef SUPPORT_TP_TOUCHKEY
1566-
#define OEM_KEY_BACK (key_switch ? KEY_APPSELECT : KEY_BACK)
1567-
#define OEM_KEY_APPSELECT (key_switch ? KEY_BACK : KEY_APPSELECT)
1566+
#define OEM_KEY_BACK KEY_BACK
1567+
#define OEM_KEY_APPSELECT KEY_BACK
15681568
#else
15691569
#define OEM_KEY_BACK KEY_BACK
1570-
#define OEM_KEY_APPSELECT KEY_APPSELECT
1570+
#define OEM_KEY_APPSELECT KEY_BACK
15711571
#endif
15721572
static void int_key_report_s3508(struct synaptics_ts_data *ts)
15731573
{

0 commit comments

Comments
 (0)
Please sign in to comment.