summaryrefslogtreecommitdiffstats
path: root/gui/action.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/action.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 '')
-rw-r--r--gui/action.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/gui/action.cpp b/gui/action.cpp
index 81c6294e2..1b30a2064 100644
--- a/gui/action.cpp
+++ b/gui/action.cpp
@@ -304,8 +304,10 @@ int GUIAction::NotifyKey(int key, bool down)
// Else, check if all buttons are pressed, then consume their release events
// so they don't trigger one-button actions and reset mKeys pressed status
if(mKeys.size() == 1) {
- if(!down && prevState)
+ if(!down && prevState) {
doActions();
+ return 0;
+ }
} else if(down) {
for(itr = mKeys.begin(); itr != mKeys.end(); ++itr) {
if(!itr->second)
@@ -320,9 +322,10 @@ int GUIAction::NotifyKey(int key, bool down)
}
doActions();
+ return 0;
}
- return 0;
+ return 1;
}
int GUIAction::NotifyVarChange(const std::string& varName, const std::string& value)