diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2010-12-02 15:25:18 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-12-02 15:25:18 -0800 |
commit | cd5e8b60cad508714fc9ecf42d6431ad8ccf7db1 (patch) | |
tree | 5f746c68c4c6cc2d2d2973950ac5080a0ae57ab6 /services | |
parent | ded695bb30e9c88c48c37e6fa5736771c6011b3d (diff) | |
parent | a30c12a18326ed4d608382cd4f970a6e15a58bf5 (diff) | |
download | frameworks_base-cd5e8b60cad508714fc9ecf42d6431ad8ccf7db1.zip frameworks_base-cd5e8b60cad508714fc9ecf42d6431ad8ccf7db1.tar.gz frameworks_base-cd5e8b60cad508714fc9ecf42d6431ad8ccf7db1.tar.bz2 |
am a30c12a1: am 4a88013a: resolved conflicts for merge of bf1439c5 to stage-korg-master
* commit 'a30c12a18326ed4d608382cd4f970a6e15a58bf5':
Preserve flags field of event passed to injectKeyEvent()
Diffstat (limited to 'services')
-rw-r--r-- | services/java/com/android/server/WindowManagerService.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/java/com/android/server/WindowManagerService.java b/services/java/com/android/server/WindowManagerService.java index d7a6a0e..7504bb4 100644 --- a/services/java/com/android/server/WindowManagerService.java +++ b/services/java/com/android/server/WindowManagerService.java @@ -6005,6 +6005,7 @@ public class WindowManagerService extends IWindowManager.Stub int deviceId = ev.getDeviceId(); int scancode = ev.getScanCode(); int source = ev.getSource(); + int flags = ev.getFlags(); if (source == InputDevice.SOURCE_UNKNOWN) { source = InputDevice.SOURCE_KEYBOARD; @@ -6014,7 +6015,7 @@ public class WindowManagerService extends IWindowManager.Stub if (downTime == 0) downTime = eventTime; KeyEvent newEvent = new KeyEvent(downTime, eventTime, action, code, repeatCount, metaState, - deviceId, scancode, KeyEvent.FLAG_FROM_SYSTEM, source); + deviceId, scancode, flags | KeyEvent.FLAG_FROM_SYSTEM, source); final int pid = Binder.getCallingPid(); final int uid = Binder.getCallingUid(); |