Fix escape passed to client.
Fix escape passed to client.

We call reset() before check whether the key need to be filtered or not.
So the later check will always be false regardless of the previous
state. Filter the key first and then do the reset.

Fix #29

fcitx/fcitx5-chinese-addons,fcitx/fcitx5-chinese-addons,fcitx/fcitx5-chinese-addons