From 332e07207b2215a951d4a50112f69a6063b27fb6 Mon Sep 17 00:00:00 2001 From: Vadim Tryshev Date: Mon, 19 Mar 2018 13:47:23 -0700 Subject: Solving losing [Alt+]Tab events MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When you are in touch mode with Overview open, and press Tab or Alt+Tab, it will be lost. This is because the upon pressing this key(s), app gets switched to the keyboard mode. When this happens, the first navigation ket gets ignored, and instead of navigation, we get focus and highlight on the first focusable element. The concept of the touch vs keyboard mode doesn’t fit well Overview mode, hence the solution is to not let the recents activity to leave the touch mode. We always keep RecentsView focused when visible. Android honors the existing focus, and doesn't’ attempt transitioning from the touch mode. Bug: 73090995 Test: Manually fetch Overview, press Tab or Alt-Tab. Drag a task with touch a bit, then press [Alt+] Tab. Repeat. Do the same with Overview opened via Alt-Tab. Also: before, after and between, also check that Tab keeps working on the workspace. Change-Id: If6890ee80e08b03580051cceeac1be9a89ad3656 --- quickstep/res/layout/overview_panel.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'quickstep/res/layout') diff --git a/quickstep/res/layout/overview_panel.xml b/quickstep/res/layout/overview_panel.xml index 54a90cfe8..e2f9ba83b 100644 --- a/quickstep/res/layout/overview_panel.xml +++ b/quickstep/res/layout/overview_panel.xml @@ -22,6 +22,7 @@ android:clipChildren="false" android:clipToPadding="false" android:alpha="0.0" - android:visibility="invisible" > + android:visibility="invisible" + android:focusableInTouchMode="true" > \ No newline at end of file -- cgit v1.2.3