[hackers] [dmenu][PATCH] vi-keys like stuff so we can scroll now up, down with mod + j/k

From: Abdullah <abdullah_AT_abdullah.today>
Date: Fri, 1 Mar 2019 20:54:13 +0500

---
 dmenu.1 | 8 ++++----
 dmenu.c | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/dmenu.1 b/dmenu.1
index 323f93c..ced143d 100644
--- a/dmenu.1
+++ b/dmenu.1
_AT_@ -179,16 +179,16 @@ Home
 End
 .TP
 .B M\-h
-Up
+Page Up
 .TP
 .B M\-j
-Page down
+Down
 .TP
 .B M\-k
-Page up
+Up
 .TP
 .B M\-l
-Down
+Page down
 .SH SEE ALSO
 .IR dwm (1),
 .IR stest (1)
diff --git a/dmenu.c b/dmenu.c
index 3bfd74d..0cebdea 100644
--- a/dmenu.c
+++ b/dmenu.c
_AT_@ -384,10 +384,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;
 		}
-- 
2.21.0
Received on Fri Mar 01 2019 - 16:54:13 CET

This archive was generated by hypermail 2.3.0 : Fri Mar 01 2019 - 17:00:23 CET