Skip to content

Commit

Permalink
fix: allow usage of w/x keys for selecting choice prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
kiedtl committed Oct 28, 2022
1 parent dc12803 commit 7a2ec41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2488,10 +2488,10 @@ pub fn drawChoicePrompt(comptime fmt: []const u8, args: anytype, options: []cons
cancelled = true;
break;
},
'j', 'h' => if (chosen < options.len - 1) {
'x', 'j', 'h' => if (chosen < options.len - 1) {
chosen += 1;
},
'k', 'l' => if (chosen > 0) {
'w', 'k', 'l' => if (chosen > 0) {
chosen -= 1;
},
'0'...'9' => {
Expand Down

0 comments on commit 7a2ec41

Please sign in to comment.