Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6ed26748 authored by Daichi Hirono's avatar Daichi Hirono
Browse files

Make the FULLSCREEN key act like Ctrl+Action+Up.

We have the existing shortcut key Ctrl+Action+Up. This CL makes the new
FULLSCREEN key behave same with the existing shortcut.

Bug: 357707706
Test: manual - press the fullscreen key, KeyGestureControllerTests
Flag: com.android.hardware.input.enable_new_25q2_keycodes
Change-Id: I627e72ddcc78fb369046af6d04bc979b0bf725d6
parent 4a7923a9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -809,7 +809,7 @@ final class KeyGestureController {
                    if (firstDown) {
                        handleKeyGesture(deviceId, new int[]{KeyEvent.KEYCODE_FULLSCREEN},
                                /* modifierState = */0,
                                KeyGestureEvent.KEY_GESTURE_TYPE_MAXIMIZE_FREEFORM_WINDOW,
                                KeyGestureEvent.KEY_GESTURE_TYPE_MULTI_WINDOW_NAVIGATION,
                                KeyGestureEvent.ACTION_GESTURE_COMPLETE, displayId, focusedToken,
                                /* flags = */0, /* appLaunchData = */null);
                    }
+2 −2
Original line number Diff line number Diff line
@@ -1112,9 +1112,9 @@ class KeyGestureControllerTests {
                intArrayOf(KeyGestureEvent.ACTION_GESTURE_COMPLETE)
            ),
            TestData(
                "FULLSCREEN -> Maximizes a task to fit the screen",
                "FULLSCREEN -> Turns a task into fullscreen",
                intArrayOf(KeyEvent.KEYCODE_FULLSCREEN),
                KeyGestureEvent.KEY_GESTURE_TYPE_MAXIMIZE_FREEFORM_WINDOW,
                KeyGestureEvent.KEY_GESTURE_TYPE_MULTI_WINDOW_NAVIGATION,
                intArrayOf(KeyEvent.KEYCODE_FULLSCREEN),
                0,
                intArrayOf(KeyGestureEvent.ACTION_GESTURE_COMPLETE)