summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2011-09-13 13:42:01 -0700
committerBill Richardson <wfrichar@chromium.org>2011-09-13 15:57:53 -0700
commitc55f0f6c7adc8fcaf612f64b94265fc0eceaa765 (patch)
tree16d551dedb906b3e40ad1ddd5f7ad3acad03176c
parent9137e8df481906c7de15d92f639a6129adedd892 (diff)
downloadvboot-c55f0f6c7adc8fcaf612f64b94265fc0eceaa765.tar.gz
Up/Down keys should change locale in BIOS screens.
BUG=chrome-os-partner:5927 TEST=manual Install BIOS with valid bitmaps, boot to dev-mode or recovery, press arrow keys. Change-Id: I3946bac94cc075f9d11b4dd3fcb118807c3318c4 Reviewed-on: http://gerrit.chromium.org/gerrit/7636 Tested-by: Bill Richardson <wfrichar@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r--firmware/lib/vboot_display.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/lib/vboot_display.c b/firmware/lib/vboot_display.c
index 307aa540..9d759a86 100644
--- a/firmware/lib/vboot_display.c
+++ b/firmware/lib/vboot_display.c
@@ -468,7 +468,8 @@ VbError_t VbCheckDisplayKey(VbCommonParams* cparams, uint32_t key,
/* Tab = display debug info */
return VbDisplayDebugInfo(cparams, vncptr);
- } else if (VB_KEY_LEFT == key || VB_KEY_RIGHT == key) {
+ } else if (VB_KEY_LEFT == key || VB_KEY_RIGHT == key ||
+ VB_KEY_DOWN == key || VB_KEY_UP == key) {
/* Arrow keys = change localization */
uint32_t loc = 0;
uint32_t count = 0;
@@ -476,7 +477,7 @@ VbError_t VbCheckDisplayKey(VbCommonParams* cparams, uint32_t key,
VbNvGet(vncptr, VBNV_LOCALIZATION_INDEX, &loc);
if (VBERROR_SUCCESS != VbGetLocalizationCount(cparams, &count))
loc = 0; /* No localization count (bad GBB?), so set to 0 (default) */
- else if (VB_KEY_RIGHT == key)
+ else if (VB_KEY_RIGHT == key || VB_KEY_UP == key)
loc = (loc < count - 1 ? loc + 1 : 0);
else
loc = (loc > 0 ? loc - 1 : count - 1);