[PATCH] M-j and M-k iterate choices 1-1, M-h and M-l page-page.

Flip the M-{j, k} and M-{h, l} commands, to mirror my Emacs
configuration.
This commit is contained in:
2024-10-24 14:23:01 +01:00
parent b2e6b2f665
commit a9e36deccc
2 changed files with 11 additions and 11 deletions

14
dmenu.1
View File

@@ -199,16 +199,16 @@ Home
End
.TP
.B M\-h
Up
.TP
.B M\-j
Page down
.TP
.B M\-k
Page up
.TP
.B M\-l
.B M\-j
Down
.TP
.B M\-k
Up
.TP
.B M\-l
Page down
.SH SEE ALSO
.IR dwm (1),
.IR stest (1)

View File

@@ -515,10 +515,10 @@ keypress(XKeyEvent *ev)
goto draw;
case XK_g: ksym = XK_Home; break;
case XK_G: ksym = XK_End; break;
case XK_h: ksym = XK_Up; break;
case XK_j: ksym = XK_Next; break;
case XK_k: ksym = XK_Prior; break;
case XK_l: ksym = XK_Down; break;
case XK_h: ksym = XK_Prior; break;
case XK_j: ksym = XK_Down; break;
case XK_k: ksym = XK_Up; break;
case XK_l: ksym = XK_Next; break;
default:
return;
}