From b248b1f689b416294c1d9180eda795a1a0de2e30 Mon Sep 17 00:00:00 2001 From: Kevin Hufnagle Date: Tue, 13 Sep 2016 19:36:20 -0700 Subject: [PATCH] docs: Clarified definition of KeyEvent.Callback.onKeyMultiple() The onKeyMultiple() event captures simulated, not actual, presses of the same key in rapid succession. Adjusted the method definition to include this clarification. Bug: 2335983 Change-Id: Id01182d81dafe98df9e559ff24f9e1d5a1f949c3 --- core/java/android/view/KeyEvent.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/java/android/view/KeyEvent.java b/core/java/android/view/KeyEvent.java index 636384c616e0d..d9df8e32ae0eb 100644 --- a/core/java/android/view/KeyEvent.java +++ b/core/java/android/view/KeyEvent.java @@ -1281,8 +1281,9 @@ public class KeyEvent extends InputEvent implements Parcelable { boolean onKeyUp(int keyCode, KeyEvent event); /** - * Called when multiple down/up pairs of the same key have occurred - * in a row. + * Called when a user's interaction with an analog control, such as + * flinging a trackball, generates simulated down/up events for the same + * key multiple times in quick succession. * * @param keyCode The value in event.getKeyCode(). * @param count Number of pairs as returned by event.getRepeatCount().