Skip to content

Commit

Permalink
fix(color): EXIT key handling (#2658)
Browse files Browse the repository at this point in the history
This issue has been introduced in #2573.
  • Loading branch information
raphaelcoeffic authored and pfeerick committed Nov 2, 2022
1 parent d924181 commit b5f8a75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion radio/src/gui/colorlcd/LvglWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,9 @@ static void keyboardDriverRead(lv_indev_drv_t *drv, lv_indev_data_t *data)

// simulate EXIT release: necessary to map
// EVT_KEY_BREAK(KEY_EXIT) to LV_EVENT_CANCEL
if (data->key == KEY_EXIT && data->state == LV_INDEV_STATE_PRESSED) {
if (data->key == LV_KEY_ESC && data->state == LV_INDEV_STATE_PRESSED) {
data->state = LV_INDEV_STATE_RELEASED;
backup_kb_data(data);
}
}

Expand Down

0 comments on commit b5f8a75

Please sign in to comment.