Loading services/core/java/com/android/server/policy/PhoneWindowManager.java +16 −2 Original line number Diff line number Diff line Loading @@ -3504,7 +3504,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { if (firstDown && event.isMetaPressed() && event.isCtrlPressed()) { StatusBarManagerInternal statusbar = getStatusBarManagerInternal(); if (statusbar != null) { statusbar.moveFocusedTaskToFullscreen(event.getDisplayId()); statusbar.moveFocusedTaskToFullscreen(getTargetDisplayIdForKeyEvent(event)); logKeyboardSystemsEvent(event, KeyboardLogEvent.MULTI_WINDOW_NAVIGATION); return true; } Loading @@ -3514,7 +3514,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { if (firstDown && event.isMetaPressed() && event.isCtrlPressed()) { StatusBarManagerInternal statusbar = getStatusBarManagerInternal(); if (statusbar != null) { statusbar.enterDesktop(event.getDisplayId()); statusbar.enterDesktop(getTargetDisplayIdForKeyEvent(event)); logKeyboardSystemsEvent(event, KeyboardLogEvent.DESKTOP_MODE); return true; } Loading Loading @@ -6951,4 +6951,18 @@ public class PhoneWindowManager implements WindowManagerPolicy { == PERMISSION_GRANTED; } } private int getTargetDisplayIdForKeyEvent(KeyEvent event) { int displayId = event.getDisplayId(); if (displayId == INVALID_DISPLAY) { displayId = mTopFocusedDisplayId; } if (displayId == INVALID_DISPLAY) { return DEFAULT_DISPLAY; } else { return displayId; } } } Loading
services/core/java/com/android/server/policy/PhoneWindowManager.java +16 −2 Original line number Diff line number Diff line Loading @@ -3504,7 +3504,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { if (firstDown && event.isMetaPressed() && event.isCtrlPressed()) { StatusBarManagerInternal statusbar = getStatusBarManagerInternal(); if (statusbar != null) { statusbar.moveFocusedTaskToFullscreen(event.getDisplayId()); statusbar.moveFocusedTaskToFullscreen(getTargetDisplayIdForKeyEvent(event)); logKeyboardSystemsEvent(event, KeyboardLogEvent.MULTI_WINDOW_NAVIGATION); return true; } Loading @@ -3514,7 +3514,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { if (firstDown && event.isMetaPressed() && event.isCtrlPressed()) { StatusBarManagerInternal statusbar = getStatusBarManagerInternal(); if (statusbar != null) { statusbar.enterDesktop(event.getDisplayId()); statusbar.enterDesktop(getTargetDisplayIdForKeyEvent(event)); logKeyboardSystemsEvent(event, KeyboardLogEvent.DESKTOP_MODE); return true; } Loading Loading @@ -6951,4 +6951,18 @@ public class PhoneWindowManager implements WindowManagerPolicy { == PERMISSION_GRANTED; } } private int getTargetDisplayIdForKeyEvent(KeyEvent event) { int displayId = event.getDisplayId(); if (displayId == INVALID_DISPLAY) { displayId = mTopFocusedDisplayId; } if (displayId == INVALID_DISPLAY) { return DEFAULT_DISPLAY; } else { return displayId; } } }