pinosaur
/
dmenu.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3e9bd1
)
align M-[hjkl] closer to vi keys
author
Connor Lane Smith
<cls@lubutu.com>
Mon, 2 Jan 2012 18:48:11 +0000
(19:48 +0100)
committer
Connor Lane Smith
<cls@lubutu.com>
Mon, 2 Jan 2012 18:48:11 +0000
(19:48 +0100)
dmenu.1
patch
|
blob
|
history
dmenu.c
patch
|
blob
|
history
diff --git
a/dmenu.1
b/dmenu.1
index
b221417
..
0784cd9
100644
(file)
--- 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 u
p
+
U
p
.TP
M\-j
-Up
+Page down
.TP
M\-k
-Down
+Page up
.TP
M\-l
-
Page d
own
+
D
own
.SH SEE ALSO
.IR dwm (1),
.IR stest (1)
diff --git
a/dmenu.c
b/dmenu.c
index
6f6123d
..
4ea95f8
100644
(file)
--- 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;
}