···155155 // A Surface must have a size. Our root widget is the size of the screen
156156 .size = max_size,
157157 .widget = self.widget(),
158158- .focusable = false,
159158 // We didn't actually need to draw anything for the root. In this case, we can set
160159 // buffer to a zero length slice. If this slice is *not zero length*, the runtime will
161160 // assert that it's length is equal to the size.width * size.height.
-1
examples/counter.zig
···9393 // A Surface must have a size. Our root widget is the size of the screen
9494 .size = max_size,
9595 .widget = self.widget(),
9696- .focusable = false,
9796 // We didn't actually need to draw anything for the root. In this case, we can set
9897 // buffer to a zero length slice. If this slice is *not zero length*, the runtime will
9998 // assert that it's length is equal to the size.width * size.height.
···292292293293 // Set state
294294 {
295295- surface.focusable = true;
296295 // Assume we have more. We only know we don't after drawing
297296 self.scroll.has_more = true;
298297 }
···355354 );
356355357356 // Draw the child
358358- var surf = try child.draw(child_ctx);
359359- // We set the child to non-focusable so that we can manage where the keyevents go
360360- surf.focusable = false;
357357+ const surf = try child.draw(child_ctx);
361358362359 // Add the child surface to our list. It's offset from parent is the accumulated height
363360 try child_list.append(.{
+1-4
src/vxfw/ScrollView.zig
···348348349349 // Set state
350350 {
351351- surface.focusable = true;
352351 // Assume we have more. We only know we don't after drawing
353352 self.scroll.has_more_vertical = true;
354353 }
···411410 );
412411413412 // Draw the child
414414- var surf = try child.draw(child_ctx);
415415- // We set the child to non-focusable so that we can manage where the keyevents go
416416- surf.focusable = false;
413413+ const surf = try child.draw(child_ctx);
417414418415 // Add the child surface to our list. It's offset from parent is the accumulated height
419416 try child_list.append(.{