OSDN Git Service

add a global flag to prevent the EventHub to push events to upper layer
authorYi Sun <beyounn@gmail.com>
Mon, 22 Feb 2010 05:18:18 +0000 (21:18 -0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 29 Oct 2010 07:45:15 +0000 (15:45 +0800)
commit646e61aad51c5cadd77f6d14c8359f61ffb166a9
tree194f0f6fb6b2bc6def9f6d972466167985a66614
parent3983b1cebdc0acca0f062dbf2f73185207bc9f08
add a global flag to prevent the EventHub to push events to upper layer

By doing this, the keyevents will not be pushed to Android when
Surfaceflinger give up the screen (Alt-F1 is used).

The idea is based on the original code from
Filippo Pagin <filippo.pagin@gmail.com>.
include/ui/keygrab.h [new file with mode: 0644]
libs/surfaceflinger/SurfaceFlinger.cpp
libs/ui/EventHub.cpp