diff options
author | Vadim Tryshev <vadimt@google.com> | 2018-03-19 13:47:23 -0700 |
---|---|---|
committer | Vadim Tryshev <vadimt@google.com> | 2018-03-19 16:40:00 -0700 |
commit | 332e07207b2215a951d4a50112f69a6063b27fb6 (patch) | |
tree | d8ae4f921c02d0deeeb2bd1bbd796e7eb0883ef8 /quickstep/res | |
parent | b036dbb622e9dfb07ecbec2e202e73bd3a21321f (diff) | |
download | android_packages_apps_Trebuchet-332e07207b2215a951d4a50112f69a6063b27fb6.tar.gz android_packages_apps_Trebuchet-332e07207b2215a951d4a50112f69a6063b27fb6.tar.bz2 android_packages_apps_Trebuchet-332e07207b2215a951d4a50112f69a6063b27fb6.zip |
Solving losing [Alt+]Tab events
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
Diffstat (limited to 'quickstep/res')
-rw-r--r-- | quickstep/res/layout/overview_panel.xml | 3 |
1 files changed, 2 insertions, 1 deletions
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" > </com.android.quickstep.views.LauncherRecentsView>
\ No newline at end of file |