From 1f2451007c660091b7b090c1ea332f9044515d2d Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Thu, 18 Nov 2010 20:53:46 -0800 Subject: Ensure the ShortcutManager uses the correct key character map. The ShortcutManager used to only receive the key code of the key event that triggered the shortcut. This change now provides the shortcut manager with the whole key event so it can look up the associated character using the correct key character map. To make this more efficient, added a mechanism for recycling key events. At the moment it is only used by key events owned by the system process, since clients of the existing API (such as Views) might continue to hold on to key events after dispatch has finished so they would break if the key event were recycled by the framework. Deprecated KeyCharacterMap.BUILT_IN_KEYBOARD. Change-Id: I4313725dd63f2be01c350c005a41c7fde9bc67e8 --- libs/ui/InputReader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/ui/InputReader.cpp') diff --git a/libs/ui/InputReader.cpp b/libs/ui/InputReader.cpp index dc9085bb3b23..aa690e5fd1ec 100644 --- a/libs/ui/InputReader.cpp +++ b/libs/ui/InputReader.cpp @@ -2007,7 +2007,7 @@ void TouchInputMapper::dumpCalibration(String8& dump) { } if (mCalibration.haveToolSizeIsSummed) { - dump.appendFormat(INDENT4 "touch.toolSize.isSummed: %d\n", + dump.appendFormat(INDENT4 "touch.toolSize.isSummed: %s\n", toString(mCalibration.toolSizeIsSummed)); } -- cgit v1.2.3-59-g8ed1b