From 808f9b86ca04ec0a7fb46b5e55d43c3b0b561888 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Thu, 5 Nov 2026 20:28:50 -1000 Subject: Let a keyboard scroll the hex dump Chrome and Firefox already let an overflowing box take focus, with their own ring, but WebKit does not. The table takes focus on a mouse click as well, where focus-visible keeps the ring off. --- source/ui-tree.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/ui-tree.c') diff --git a/source/ui-tree.c b/source/ui-tree.c index eed5f25..b682f3e 100644 --- a/source/ui-tree.c +++ b/source/ui-tree.c @@ -117,7 +117,9 @@ static void print_binary_buffer(char *buf, size_t size, const char *path, const char ascii[HEXDUMP_ROW_BYTES + 1]; struct strbuf row = STRBUF_INIT; - html("\n"); + // The table scrolls sideways on a narrow window, and since nothing in + // it can take focus, the table has to for a keyboard to scroll it. + html("
\n"); html("\n"); // A row goes out in one write rather than a write per byte. -- cgit 2.12.1
ofshex dumpascii