╭ changed ────────────╮ │src/ui/Repo/Files.zig│ ╰─────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────╮ │698 } │ │699 │ │700 pub fn input(self: *View, allocator: std.mem.Allocator, key: Key, root_focus: *Focus) !void {│ │701 + // scrolling crosses the sub header boundary the same way arrows do │ │702 + const direction = inp.vertDirection(key); │ │703 if (self.headerActive()) { │ │702 - if (key == .arrow_down) { │ │704 + if (direction == .down) { │ │705 root_focus.setFocus(self.contentBox().getFocus().id); │ │706 return; │ │707 } │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │711 }; │ │712 return self.header().input(allocator, key, root_focus); │ │713 } │ │712 - if (key == .arrow_up and self.contentAtTop() and self.header().focusHeader(root_focus)) return;│ │714 + if (direction == .up and self.contentAtTop() and self.header().focusHeader(root_focus)) return;│ │715 if (self.detailActive()) { │ │716 try self.detailInput(key, root_focus); │ │717 } else { │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────╯