fix(key driver): pass EVT_KEY_LONG(KEY_EXIT) properly

This commit is contained in:
Raphael Coeffic
2022-06-11 15:38:08 +02:00
committed by Raphael Coeffic
parent 180ceec537
commit f31a2af57b
+3 -1
View File
@@ -67,7 +67,9 @@ static bool evt_to_indev_data(event_t evt, lv_indev_data_t *data)
break;
case KEY_EXIT:
data->key = LV_KEY_ESC;
if (evt != EVT_KEY_LONG(KEY_EXIT)) {
data->key = LV_KEY_ESC;
} else { return false; }
break;
default: