System/Libraries/Widget: Initial support for ListViewWidget

This commit is contained in:
Alec Murphy
2025-09-25 08:24:27 -04:00
parent ea44c28461
commit dac924c707
2 changed files with 55 additions and 11 deletions

View File

@@ -786,6 +786,16 @@ U0 @compositor_handle_window_input_events(Window* win)
}
}
}
if (win->focused_widget->type == WIDGET_TYPE_LISTVIEW) {
if (@widget_listview_handle_key(win->focused_widget)) {
msg = CAlloc(sizeof(IpcMessage));
System.Log(Fs, "Sent message → WinKeyPress");
msg->client = win->client;
msg->type = CPZ_MSG_WIN_KEY_PRESS;
msg->payload = win;
Ipc.MsgSend(msg->client, msg);
}
}
}
if (Mouse.z != Compositor.mouse.delta_z) {