Accessibility: move cursor to selected option on delete confirmation

This makes the selection usable for screen readers. Ncdu 1.x already
correctly did this.
This commit is contained in:
Yorhel 2025-08-13 09:37:15 +02:00
parent 66b875eb00
commit ac4d689e22

View file

@ -189,6 +189,11 @@ fn drawConfirm() void {
box.move(4, 31);
ui.style(if (confirm == .ignore) .sel else .default);
ui.addstr("don't ask me again");
box.move(4, switch (confirm) {
.yes => 15,
.no => 25,
.ignore => 31
});
}
fn drawProgress() void {