diff --git a/examples/text_input.zig b/examples/text_input.zig index 0f350ee..0d7f8a2 100644 --- a/examples/text_input.zig +++ b/examples/text_input.zig @@ -77,6 +77,8 @@ pub fn main() !void { vx.queueRefresh(); } else if (key.matches('n', .{ .ctrl = true })) { try vx.notify("vaxis", "hello from vaxis"); + } else if (key.matches(vaxis.Key.enter, .{})) { + text_input.clearAndFree(); } else { try text_input.update(.{ .key_press = key }); }