diff options
author | 2012-09-03 18:38:58 -0700 | |
---|---|---|
committer | 2012-09-03 18:38:58 -0700 | |
commit | a289380b67ccca04b528a3e85067de68e107d43e (patch) | |
tree | dece00e3d859263533bcf95b3ffdff0084c4ad8f /java/src/com/android/inputmethod/accessibility/AccessibleKeyboardViewProxy.java | |
parent | 2fbe15e380e3158837d1ebada2ff8d06ef700f37 (diff) | |
parent | b3869516630a9c60c3aa6f99452dbfc461e02c16 (diff) | |
download | latinime-a289380b67ccca04b528a3e85067de68e107d43e.tar.gz latinime-a289380b67ccca04b528a3e85067de68e107d43e.tar.xz latinime-a289380b67ccca04b528a3e85067de68e107d43e.zip |
am b3869516: am 2c0c1cc6: Merge "Fix key info reported by keyboard accessibility node provider." into jb-mr1-dev
* commit 'b3869516630a9c60c3aa6f99452dbfc461e02c16':
Fix key info reported by keyboard accessibility node provider.
Diffstat (limited to 'java/src/com/android/inputmethod/accessibility/AccessibleKeyboardViewProxy.java')
-rw-r--r-- | java/src/com/android/inputmethod/accessibility/AccessibleKeyboardViewProxy.java | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/accessibility/AccessibleKeyboardViewProxy.java b/java/src/com/android/inputmethod/accessibility/AccessibleKeyboardViewProxy.java index e42de0b4c..77940c086 100644 --- a/java/src/com/android/inputmethod/accessibility/AccessibleKeyboardViewProxy.java +++ b/java/src/com/android/inputmethod/accessibility/AccessibleKeyboardViewProxy.java @@ -105,8 +105,21 @@ public class AccessibleKeyboardViewProxy extends AccessibilityDelegateCompat { } /** - * Receives hover events when accessibility is turned on in SDK versions ICS - * and higher. + * Receives motion events when touch exploration is turned on in SDK + * versions ICS and higher. + * + * @param event The motion event. + * @return {@code true} if the event is handled + */ + public boolean onTouchEvent(MotionEvent event) { + // To avoid accidental key presses during touch exploration, always drop + // non-hover touch events. + return false; + } + + /** + * Receives hover events when touch exploration is turned on in SDK versions + * ICS and higher. * * @param event The hover event. * @return {@code true} if the event is handled |