summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor Lane Smith <cls@lubutu.com>2012-01-02 19:48:11 +0100
committerConnor Lane Smith <cls@lubutu.com>2012-01-02 19:48:11 +0100
commit3402a8d53a95bd60b434bd26139d398392489b28 (patch)
tree27539d0e444b244236c2e8be7edb3ec06757f2ed
parentd3e9bd152ed007682b339f3a07a5720ad53cb675 (diff)
align M-[hjkl] closer to vi keys
-rw-r--r--dmenu.111
-rw-r--r--dmenu.c8
2 files changed, 11 insertions, 8 deletions
diff --git a/dmenu.1 b/dmenu.1
index b221417..0784cd9 100644
--- a/dmenu.1
+++ b/dmenu.1
@@ -116,6 +116,9 @@ Tab
C\-j
Return
.TP
+C\-J
+Shift-Return
+.TP
C\-k
Delete line right
.TP
@@ -147,16 +150,16 @@ M\-G
End
.TP
M\-h
-Page up
+Up
.TP
M\-j
-Up
+Page down
.TP
M\-k
-Down
+Page up
.TP
M\-l
-Page down
+Down
.SH SEE ALSO
.IR dwm (1),
.IR stest (1)
diff --git a/dmenu.c b/dmenu.c
index 6f6123d..4ea95f8 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -282,10 +282,10 @@ keypress(XKeyEvent *ev) {
switch(ksym) {
case XK_g: ksym = XK_Home; break;
case XK_G: ksym = XK_End; break;
- case XK_h: ksym = XK_Prior; break;
- case XK_j: ksym = XK_Up; break;
- case XK_k: ksym = XK_Down; break;
- case XK_l: ksym = XK_Next; 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;
default:
return;
}