╭ changed ─────────────╮ │src/ui/Repo/Events.zig│ ╰──────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │540 } │ │541 │ │542 pub fn input(self: *View, allocator: std.mem.Allocator, key: Key, root_focus: *Focus) !void { │ │543 + // scrolling crosses the sub header boundary the same way arrows do │ │544 + const direction = inp.vertDirection(key); │ │545 if (self.headerActive()) { │ │544 - if (key == .arrow_down) root_focus.setFocus(self.content().getFocus().id) else try self.header().input(allocator, key, root_focus);│ │546 + if (direction == .down) root_focus.setFocus(self.content().getFocus().id) else try self.header().input(allocator, key, root_focus);│ │547 return; │ │548 } │ │547 - if (key == .arrow_up and self.contentAtTop()) { │ │549 + if (direction == .up and self.contentAtTop()) { │ │550 self.header().focusCurrent(root_focus); │ │551 return; │ │552 } │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯