1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 11:22:24 +01:00

Display menu: Allow "left" key to exit current menu if not editing (#6460)

This commit is contained in:
Jesse Hills
2024-04-03 07:33:18 +13:00
committed by GitHub
parent ec32501d40
commit 4fcb26d69d

View File

@@ -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: