Do not handle release key events, if engine is in init mode.
authorPeng Huang <shawn.p.huang@gmail.com>
Tue, 18 Jan 2011 15:12:40 +0000 (10:12 -0500)
committerPeng Huang <shawn.p.huang@gmail.com>
Tue, 18 Jan 2011 15:12:40 +0000 (10:12 -0500)
commita142d959cdba0406a2c614fadfa9367803c31286
tree99d435039c3b2578fddccf7e4ca88b4ab1916308
parent15b9b66b013ee83974b3ae16a76983cc10e9dbe8
Do not handle release key events, if engine is in init mode.

Most application only process key press events, but some process key release events. This change will let Pinyin engine to ignore some release events in init mode, and let applications have chance to get release key events.

BUG=none
TEST=Test within Ubuntu 10.10

Review URL: http://codereview.appspot.com/3975042
src/PYBopomofoEngine.cc
src/PYPinyinEngine.cc