MENU键现在是弹出菜单,想改成弹出最近应用,我在PhoneWindowManager.java里面找到如下代码,加了一行toggleRecentApps();可以实现recentApp,但是菜单功能同时存在,如何屏蔽。
else if (keyCode == KeyEvent.KEYCODE_MENU) {
final int chordBug = KeyEvent.META_SHIFT_ON;
if (down && repeatCount == 0) {
toggleRecentApps();//加了这一行
if (mEnableShiftMenuBugReports && (metaState & chordBug) == chordBug) {
Intent intent = new Intent(Intent.ACTION_BUG_REPORT);
mContext.sendOrderedBroadcastAsUser(intent, UserHandle.CURRENT,
null, null, null, 0, null, null);
return -1;
}
}
}