summaryrefslogtreecommitdiffstats
path: root/gui/terminal.cpp
diff options
context:
space:
mode:
authorthat <github@that.at>2016-01-19 00:15:21 +0100
committerthat <github@that.at>2016-01-19 00:15:21 +0100
commitd4725ca147b3ac32c8a4e66bb75727e597a2ee14 (patch)
tree590ce337dff80aec56b1fd25a8c016d21608aeb3 /gui/terminal.cpp
parentgui: make tw_show_kb non-persistent (diff)
downloadandroid_bootable_recovery-d4725ca147b3ac32c8a4e66bb75727e597a2ee14.tar
android_bootable_recovery-d4725ca147b3ac32c8a4e66bb75727e597a2ee14.tar.gz
android_bootable_recovery-d4725ca147b3ac32c8a4e66bb75727e597a2ee14.tar.bz2
android_bootable_recovery-d4725ca147b3ac32c8a4e66bb75727e597a2ee14.tar.lz
android_bootable_recovery-d4725ca147b3ac32c8a4e66bb75727e597a2ee14.tar.xz
android_bootable_recovery-d4725ca147b3ac32c8a4e66bb75727e597a2ee14.tar.zst
android_bootable_recovery-d4725ca147b3ac32c8a4e66bb75727e597a2ee14.zip
Diffstat (limited to 'gui/terminal.cpp')
-rw-r--r--gui/terminal.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gui/terminal.cpp b/gui/terminal.cpp
index 00b7820a5..044782e4e 100644
--- a/gui/terminal.cpp
+++ b/gui/terminal.cpp
@@ -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;