aboutsummaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/menu.c b/menu.c
index 144a052..cbc94b4 100644
--- a/menu.c
+++ b/menu.c
@@ -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);