diff options
| author | keunyoung <keunyoung@google.com> | 2013-08-02 14:23:10 -0700 |
|---|---|---|
| committer | keunyoung <keunyoung@google.com> | 2013-08-08 19:45:21 -0700 |
| commit | 30f420fd6a74ffa28b351b4aba74d44f5ea48dda (patch) | |
| tree | a45e1874145db8c77267e21221e6593c7b5e07e2 /core/java/android/widget/ZoomButtonsController.java | |
| parent | 37ee68fc091f64e17c0ef29b123b782b6daecf16 (diff) | |
add local focus mode and input event injection API to Window
- This enables keyboard navigation for window without focus.
- FLAG_LOCAL_FOCUS_MODE puts window into local focus mode.
- Application needs to put window in local focus mode, control focus, and
inject events to make dpad navigation work.
- Window in local focus mode does not interact with window manager or ime
regarding focus related events.
- Also renamed ViewRootImpl.dispatchKey to dispatchInputEvent to allow both key and touch events injection.
Change-Id: I8e8561f29e0dade3797fb7ae3ee7690e6b7f8895
Diffstat (limited to 'core/java/android/widget/ZoomButtonsController.java')
| -rw-r--r-- | core/java/android/widget/ZoomButtonsController.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/widget/ZoomButtonsController.java b/core/java/android/widget/ZoomButtonsController.java index a89c9c14244b..50c803bdcc5f 100644 --- a/core/java/android/widget/ZoomButtonsController.java +++ b/core/java/android/widget/ZoomButtonsController.java @@ -503,7 +503,7 @@ public class ZoomButtonsController implements View.OnTouchListener { ViewRootImpl viewRoot = mOwnerView.getViewRootImpl(); if (viewRoot != null) { - viewRoot.dispatchKey(event); + viewRoot.dispatchInputEvent(event); } // We gave the key to the owner, don't let the container handle this key |
