mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 13:34:54 +01:00
Display menu: Allow "left" key to exit current menu if not editing (#6460)
This commit is contained in:
parent
ec32501d40
commit
4fcb26d69d
1 changed files with 2 additions and 0 deletions
|
@ -60,6 +60,8 @@ void DisplayMenuComponent::left() {
|
||||||
if (this->editing_) {
|
if (this->editing_) {
|
||||||
this->finish_editing_();
|
this->finish_editing_();
|
||||||
changed = true;
|
changed = true;
|
||||||
|
} else {
|
||||||
|
changed = this->leave_menu_();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MENU_MODE_JOYSTICK:
|
case MENU_MODE_JOYSTICK:
|
||||||
|
|
Loading…
Reference in a new issue