diff options
author | Jeff Brown <jeffbrown@google.com> | 2010-11-18 14:20:30 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-11-18 14:20:30 -0800 |
commit | dd4e4603efef2c3df0e26835935f74e1e0e7deb2 (patch) | |
tree | 2ba66f799846ce2707dad9e4c5bb98e50c1291c7 /packages | |
parent | 2a26037ddd2d4c3150e3d8ca5d7caf23deae35d5 (diff) | |
parent | 6b53e8daa69cba1a2a5a7c95a01e37ce9c53226c (diff) | |
download | frameworks_base-dd4e4603efef2c3df0e26835935f74e1e0e7deb2.zip frameworks_base-dd4e4603efef2c3df0e26835935f74e1e0e7deb2.tar.gz frameworks_base-dd4e4603efef2c3df0e26835935f74e1e0e7deb2.tar.bz2 |
Merge "Added support for full PC-style keyboards."
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonView.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonView.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonView.java index aed3dc7..5374957 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonView.java @@ -28,6 +28,7 @@ import android.util.Slog; import android.view.HapticFeedbackConstants; import android.view.IWindowManager; import android.view.InputDevice; +import android.view.KeyCharacterMap; import android.view.KeyEvent; import android.view.MotionEvent; import android.view.ViewConfiguration; @@ -133,7 +134,7 @@ public class KeyButtonView extends ImageView { void sendEvent(int action, int flags, long when) { final KeyEvent ev = new KeyEvent(mDownTime, when, action, mCode, mRepeat, - 0, 0, 0, flags, InputDevice.SOURCE_KEYBOARD); + 0, KeyCharacterMap.VIRTUAL_KEYBOARD, 0, flags, InputDevice.SOURCE_KEYBOARD); try { //Slog.d(TAG, "injecting event " + ev); mWindowManager.injectInputEventNoWait(ev); |