projects
/
suckless
/
dmenu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
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 b221417b774f4d446103e2a7e432d438a6485247..0784cd9279dae58528533470980e8ee29982024e 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 6f6123d1c493df917d86e009eec2a5e03d9d1d05..4ea95f80984475647c476db67c55deb9666668ca 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;
}