╭ changed ──────────────╮ │src/ui/Repo/Commits.zig│ ╰───────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────╮ │692 } │ │693 │ │694 pub fn input(self: *View, allocator: std.mem.Allocator, key: Key, root_focus: *Focus) !void {│ │695 + // scrolling crosses the sub header boundary the same way arrows do │ │696 + const direction = inp.vertDirection(key); │ │697 if (self.headerActive()) { │ │696 - if (key == .arrow_down) { │ │698 + if (direction == .down) { │ │699 root_focus.setFocus(self.contentBox().getFocus().id); │ │700 return; │ │701 } │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │705 }; │ │706 return self.header().input(allocator, key, root_focus); │ │707 } │ │706 - if (key == .arrow_up and self.contentAtTop() and self.header().focusHeader(root_focus)) return;│ │708 + if (direction == .up and self.contentAtTop() and self.header().focusHeader(root_focus)) return;│ │709 if (self.diffActive()) { │ │710 if (key == .arrow_left and self.diffScroll().x == 0) { │ │711 self.focusList(root_focus); │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────╯