Skip to content

Commit 5fd53fb

Browse files
committed
Switch between mobile and desktop context menu.
1 parent 9080742 commit 5fd53fb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugins/gui/gui.c

+4
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,11 @@ void ctr_gui_internal_event_handler(lv_event_t* e) {
428428
event_name = lv_event_code_get_name(lv_event_get_code(e));
429429
lv_obj_t* target = lv_event_get_target(e);
430430
id = (uint32_t) lv_obj_get_id(target);
431+
#ifdef ANDROID_EXPORT
431432
if (event_code == LV_EVENT_LONG_PRESSED) {
433+
#else
434+
if (event_code == LV_EVENT_RIGHT) {
435+
#endif
432436
CtrGUIContextFocus = lv_indev_get_active_obj();
433437
if (CtrGUIContextFocus) {
434438
lv_obj_add_event_cb(CtrGUIContextFocus, &ctr_gui_internal_context_menu_reset_focus, LV_EVENT_DELETE, NULL);

0 commit comments

Comments
 (0)