╭ changed ────╮ │build.zig.zon│ ╰─────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ 3 .version = "0.0.0", │ │ 4 .dependencies = .{ │ │ 5 .xit = .{ │ │ 6 - .url = "git+https://github.com/xit-vcs/xit#8ddcbf5ee63ea5240ff2a25c3ae49426221a5b71",│ │ 7 - .hash = "xit-0.0.0-Ub3nDHMtUQGUVQ_Um2HECyXk_GHaLYOBZSTa-FVmNRJU", │ │ 6 + .url = "git+https://github.com/xit-vcs/xit#44100b2b92c42bd8696f9378afb65916165c8c88",│ │ 7 + .hash = "xit-0.0.0-Ub3nDH61UAELs5a4QvNrfP5fVhfHKQefQNVkk68SDfUe", │ │ 8 }, │ │ 9 }, │ │10 .paths = .{ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ────────╮ │src/main_wasm.zig│ ╰─────────────────╯ ╭─────────────────────────────────────────────╮ │3 const web = @import("./web.zig"); │ │4 const xit = @import("xit"); │ │5 const xitui = xit.xitui; │ │6 -const inp = xitui.input; │ │6 +const Key = xitui.input.Key; │ │7 const wgt = xitui.widget; │ │8 │ │9 const allocator = std.heap.wasm_allocator;│ ╰─────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────╮ │112 │ │113 fn onKeyDown(key_code: u32) !void { │ │114 const root_ptr = if (root) |*root_value| root_value else return error.NotStarted;│ │115 - const key: inp.Key = switch (key_code) { │ │115 + const key: Key = switch (key_code) { │ │116 13 => .enter, │ │117 33 => .page_up, │ │118 34 => .page_down, │ ╰──────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ─╮ │src/ui.zig│ ╰──────────╯ ╭───────────────────────────────────────╮ │ 7 const term = xitui.terminal; │ │ 8 const wgt = xitui.widget; │ │ 9 const layout = xitui.layout; │ │10 -const inp = xitui.input; │ │10 +const Key = xitui.input.Key; │ │11 const Grid = xitui.grid.Grid; │ │12 const Focus = xitui.focus.Focus; │ │13 const evt = @import("./event.zig");│ ╰───────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │774 } │ │775 } │ │776 │ │777 -pub fn inputKey(allocator: std.mem.Allocator, root: *Widget, key: inp.Key, session: *Session) !void {│ │777 +pub fn inputKey(allocator: std.mem.Allocator, root: *Widget, key: Key, session: *Session) !void { │ │778 switch (key) { │ │779 // request a navigation pop; the host's Nav.sync goes back a page, or │ │780 // quits when there's no history left. │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1087 } │ │1088 } │ │1089 │ │1090 - pub fn input(self: *Widget, allocator: std.mem.Allocator, key: inp.Key, root_focus: *Focus) anyerror!void {│ │1090 + pub fn input(self: *Widget, allocator: std.mem.Allocator, key: Key, root_focus: *Focus) anyerror!void { │ │1091 switch (self.*) { │ │1092 inline else => |*case| try case.input(allocator, key, root_focus), │ │1093 } │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1236 self.grid = grid; │ │1237 } │ │1238 │ │1239 - pub fn input(self: *FlowBox, allocator: std.mem.Allocator, key: inp.Key, root_focus: *Focus) !void {│ │1239 + pub fn input(self: *FlowBox, allocator: std.mem.Allocator, key: Key, root_focus: *Focus) !void { │ │1240 _ = self; │ │1241 _ = allocator; │ │1242 _ = key; │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1303 try self.scroll.build(allocator, constraint, root_focus); │ │1304 } │ │1305 │ │1306 - pub fn input(self: *Scroll, allocator: std.mem.Allocator, key: inp.Key, root_focus: *Focus) !void {│ │1306 + pub fn input(self: *Scroll, allocator: std.mem.Allocator, key: Key, root_focus: *Focus) !void { │ │1307 _ = allocator; │ │1308 const in = self.inner(); │ │1309 const child_id = in.focus.child_id orelse return; │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1414 self.grid = try Grid.init(allocator, .{ .width = width, .height = 1 }); │ │1415 } │ │1416 │ │1417 - pub fn input(self: *Spacer, allocator: std.mem.Allocator, key: inp.Key, root_focus: *Focus) !void {│ │1417 + pub fn input(self: *Spacer, allocator: std.mem.Allocator, key: Key, root_focus: *Focus) !void { │ │1418 _ = self; │ │1419 _ = allocator; │ │1420 _ = key; │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1485 self.grid = grid; │ │1486 } │ │1487 │ │1488 - pub fn input(self: *Footer, allocator: std.mem.Allocator, key: inp.Key, root_focus: *Focus) !void {│ │1488 + pub fn input(self: *Footer, allocator: std.mem.Allocator, key: Key, root_focus: *Focus) !void { │ │1489 _ = self; │ │1490 _ = allocator; │ │1491 _ = key; │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯