gui: fix return value of NotifyKey

Only the last action got its keys and ate all of them (om nom nom).
This fixes the power button action that activates the lock screen.

Change-Id: Ia724568b159090c2c14a282cf3927915b2dc70e7
This commit is contained in:
that
2016-01-19 00:15:21 +01:00
parent faa4377e40
commit d4725ca147
2 changed files with 7 additions and 2 deletions
+2
View File
@@ -833,6 +833,8 @@ int GUITerminal::NotifyTouch(TOUCH_STATE state, int x, int y)
int GUITerminal::NotifyKey(int key, bool down)
{
if (!HasInputFocus)
return 1;
if (down)
if (engine->inputKey(key))
mUpdate = 1;