commit c415bcbe64735058f98d5401f8cbbed0a8d6e16f
parent c95bc02f3ff6a71a67f33684d5889872aba5e521
Author: hhvn <dev@hhvn.uk>
Date: Sat, 11 Sep 2021 15:26:49 +0100
dmenu.c: ctrl+enter moves down an entry
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/dmenu.c b/dmenu.c
@@ -652,6 +652,10 @@ keypress(XKeyEvent *ev)
}
if (sel)
sel->out = 1;
+ if (sel && sel->right && (sel = sel->right) == next) {
+ curr = next;
+ calcoffsets();
+ }
break;
case XK_Right:
if (text[cursor] != '\0') {