summaryrefslogtreecommitdiffstats
path: root/screen_ui.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-04-13 22:17:11 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-04-13 22:17:12 +0200
commitb68c4fc42617acb97dde89f501caf8558a348b51 (patch)
treeb8e7f4549a7fb6d562a1e01eac35e1080031db0e /screen_ui.cpp
parentMerge "Rewritten file pager." (diff)
parentTreat KEY_ENTER the same as KEY_POWER in the pager. (diff)
downloadandroid_bootable_recovery-b68c4fc42617acb97dde89f501caf8558a348b51.tar
android_bootable_recovery-b68c4fc42617acb97dde89f501caf8558a348b51.tar.gz
android_bootable_recovery-b68c4fc42617acb97dde89f501caf8558a348b51.tar.bz2
android_bootable_recovery-b68c4fc42617acb97dde89f501caf8558a348b51.tar.lz
android_bootable_recovery-b68c4fc42617acb97dde89f501caf8558a348b51.tar.xz
android_bootable_recovery-b68c4fc42617acb97dde89f501caf8558a348b51.tar.zst
android_bootable_recovery-b68c4fc42617acb97dde89f501caf8558a348b51.zip
Diffstat (limited to 'screen_ui.cpp')
-rw-r--r--screen_ui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/screen_ui.cpp b/screen_ui.cpp
index 1e42ee7b4..cca261fc4 100644
--- a/screen_ui.cpp
+++ b/screen_ui.cpp
@@ -539,7 +539,7 @@ void ScreenRecoveryUI::ShowFile(FILE* fp) {
while (show_prompt) {
show_prompt = false;
int key = WaitKey();
- if (key == KEY_POWER) {
+ if (key == KEY_POWER || key == KEY_ENTER) {
return;
} else if (key == KEY_UP || key == KEY_VOLUMEUP) {
if (offsets.size() <= 1) {