╭ changed ─╮ │src/ui.zig│ ╰──────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭───────────────────────────────────────╮ │ 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; │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1569 self.grid = grid; │ │1570 } │ │1571 │ │1572 - pub fn input(self: *Center, allocator: std.mem.Allocator, key: inp.Key, root_focus: *Focus) !void {│ │1572 + pub fn input(self: *Center, allocator: std.mem.Allocator, key: Key, root_focus: *Focus) !void { │ │1573 try self.child.input(allocator, key, root_focus); │ │1574 } │ │1575 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1787 } │ │1788 } │ │1789 │ │1790 - pub fn input(self: *AnsiBackground, allocator: std.mem.Allocator, key: inp.Key, root_focus: *Focus) !void {│ │1790 + pub fn input(self: *AnsiBackground, allocator: std.mem.Allocator, key: Key, root_focus: *Focus) !void { │ │1791 try self.child.input(allocator, key, root_focus); │ │1792 } │ │1793 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯