Merge "Removing some shortcut mappings that didn't make to UDC in system info" into udc-dev
This commit is contained in:
@@ -534,19 +534,7 @@ public final class KeyboardShortcutListSearch {
|
|||||||
new ShortcutKeyGroupMultiMappingInfo(
|
new ShortcutKeyGroupMultiMappingInfo(
|
||||||
context.getString(R.string.group_system_access_google_assistant),
|
context.getString(R.string.group_system_access_google_assistant),
|
||||||
Arrays.asList(
|
Arrays.asList(
|
||||||
Pair.create(KeyEvent.KEYCODE_A, KeyEvent.META_META_ON))),
|
Pair.create(KeyEvent.KEYCODE_A, KeyEvent.META_META_ON)))
|
||||||
/* Lock screen: Meta + L */
|
|
||||||
new ShortcutKeyGroupMultiMappingInfo(
|
|
||||||
context.getString(R.string.group_system_lock_screen),
|
|
||||||
Arrays.asList(
|
|
||||||
Pair.create(KeyEvent.KEYCODE_L, KeyEvent.META_META_ON))),
|
|
||||||
/* Pull up Notes app for quick memo: Meta + Ctrl + N */
|
|
||||||
new ShortcutKeyGroupMultiMappingInfo(
|
|
||||||
context.getString(R.string.group_system_quick_memo),
|
|
||||||
Arrays.asList(
|
|
||||||
Pair.create(
|
|
||||||
KeyEvent.KEYCODE_N,
|
|
||||||
KeyEvent.META_META_ON | KeyEvent.META_CTRL_ON)))
|
|
||||||
);
|
);
|
||||||
for (ShortcutKeyGroupMultiMappingInfo info : infoList) {
|
for (ShortcutKeyGroupMultiMappingInfo info : infoList) {
|
||||||
systemGroup.addItem(info.getShortcutMultiMappingInfo());
|
systemGroup.addItem(info.getShortcutMultiMappingInfo());
|
||||||
@@ -588,21 +576,12 @@ public final class KeyboardShortcutListSearch {
|
|||||||
new ArrayList<>());
|
new ArrayList<>());
|
||||||
|
|
||||||
// System multitasking shortcuts:
|
// System multitasking shortcuts:
|
||||||
// Enter Split screen with current app to RHS: Meta + Ctrl + Right arrow
|
|
||||||
// Enter Split screen with current app to LHS: Meta + Ctrl + Left arrow
|
|
||||||
// Switch from Split screen to full screen: Meta + Ctrl + Up arrow
|
// Switch from Split screen to full screen: Meta + Ctrl + Up arrow
|
||||||
// During Split screen: replace an app from one to another: Meta + Ctrl + Down arrow
|
|
||||||
String[] shortcutLabels = {
|
String[] shortcutLabels = {
|
||||||
context.getString(R.string.system_multitasking_rhs),
|
|
||||||
context.getString(R.string.system_multitasking_lhs),
|
|
||||||
context.getString(R.string.system_multitasking_full_screen),
|
context.getString(R.string.system_multitasking_full_screen),
|
||||||
context.getString(R.string.system_multitasking_replace)
|
|
||||||
};
|
};
|
||||||
int[] keyCodes = {
|
int[] keyCodes = {
|
||||||
KeyEvent.KEYCODE_DPAD_RIGHT,
|
|
||||||
KeyEvent.KEYCODE_DPAD_LEFT,
|
|
||||||
KeyEvent.KEYCODE_DPAD_UP,
|
KeyEvent.KEYCODE_DPAD_UP,
|
||||||
KeyEvent.KEYCODE_DPAD_DOWN
|
|
||||||
};
|
};
|
||||||
|
|
||||||
for (int i = 0; i < shortcutLabels.length; i++) {
|
for (int i = 0; i < shortcutLabels.length; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user