From ff36b7225cd146b50cb8e4522ad58aa43c6bc153 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 06 Aug 2021 08:25:33 -0400 Subject: tk: Build focus tab index --- (limited to 'src/tk/button.c') diff --git a/src/tk/button.c b/src/tk/button.c index 57e505a..a236dd4 100644 --- a/src/tk/button.c +++ b/src/tk/button.c @@ -108,7 +108,7 @@ mftk_button_new(TTF_Font *font, const char *text, SDL_Color *text_color, struct mftk_widget *w; struct mftk_button *b; - mftk_widget_init(w, b, button); + mftk_widget_init_focusable(w, b, button); b->label = mftk_label_new(font, text, text_color, renderer); if (b->label == NULL) { -- cgit v0.9.1