Add keyboard navigation for App Chip and Chip Menu

Bug: 400410772
Flag: com.android.launcher3.enable_overview_icon_menu
Test: Manual using Keyboard. Access the app chip via TAB.
Change-Id: I75f80b5c6f366ecfc27596519a721cc6ace18d45
This commit is contained in:
Jordan Silva
2025-03-12 07:55:04 -07:00
parent 3c68091e0f
commit 99eefc9055
6 changed files with 81 additions and 7 deletions
@@ -4780,6 +4780,11 @@ public abstract class RecentsView<
if (isHandlingTouch() || event.getAction() != KeyEvent.ACTION_DOWN) {
return super.dispatchKeyEvent(event);
}
if (mUtils.shouldInterceptKeyEvent(event)) {
return super.dispatchKeyEvent(event);
}
switch (event.getKeyCode()) {
case KeyEvent.KEYCODE_TAB:
return snapToPageRelative(event.isShiftPressed() ? -1 : 1, true /* cycle */,