summaryrefslogtreecommitdiffstats
path: root/default_device.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'default_device.cpp')
-rw-r--r--default_device.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/default_device.cpp b/default_device.cpp
index 648eaec4e..1f181318e 100644
--- a/default_device.cpp
+++ b/default_device.cpp
@@ -31,20 +31,10 @@ static const char* ITEMS[] = {"reboot system now",
"wipe cache partition",
NULL };
-class DefaultUI : public ScreenRecoveryUI {
- public:
- virtual KeyAction CheckKey(int key) {
- if (key == KEY_HOME) {
- return TOGGLE;
- }
- return ENQUEUE;
- }
-};
-
class DefaultDevice : public Device {
public:
DefaultDevice() :
- ui(new DefaultUI) {
+ ui(new ScreenRecoveryUI) {
}
RecoveryUI* GetUI() { return ui; }
@@ -61,6 +51,7 @@ class DefaultDevice : public Device {
return kHighlightUp;
case KEY_ENTER:
+ case KEY_POWER:
return kInvokeItem;
}
}