diff options
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -529,6 +529,8 @@ void menu_keypress(struct menu *menu, enum wl_keyboard_key_state key_state, puts(menu->input); fflush(stdout); menu->exit = true; + } else if (menu->callback) { + menu->callback(menu); } else { char *text = menu->sel ? menu->sel->text : menu->input; puts(text); |