From 1c9d93cce891d768a75ae1a075ca6e3155a12c73 Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Sat, 25 Nov 2023 03:38:40 -0600 Subject: add key handling and some other stuff --- src/ui/dock.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/ui/dock.c') diff --git a/src/ui/dock.c b/src/ui/dock.c index 82f6728..c0931ba 100644 --- a/src/ui/dock.c +++ b/src/ui/dock.c @@ -153,3 +153,15 @@ void ui__dock_default_layout_proc(struct ui_window_base *base) ui__call_layout_proc(child); } } + +struct ui_window_base *ui__dock_default_control_proc(struct ui_window_base *base, ui_control inp) +{ + struct ui_window_dock *dock = ui__cast(dock, base); + umps_unused(inp); + + if (dock->focus != UI__WINDOW_FOCUS_NONE && dock->children[dock->focus]) { + return dock->children[dock->focus]; + } + + return NULL; /* no focus */ +} -- cgit v1.2.3-70-g09d2