aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorc2023-11-27 20:02:46 -0500
committerc2023-11-27 20:02:46 -0500
commiteabf70bdbe4e9c3f938ed763c550b10c5413f3ea (patch)
tree7fd6348b407a76258be9a67012828db72dd2a238
parent32869c614bbd086a94243978abd3344804e41036 (diff)
Make the paste keybind make sense.
-rw-r--r--dmenu.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/dmenu.c b/dmenu.c
index 203fcdc..90cc1bd 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -369,7 +369,6 @@ keypress(XKeyEvent *ev)
case XK_m: /* fallthrough */
case XK_M: ksym = XK_Return; ev->state &= ~ControlMask; break;
case XK_n: ksym = XK_Down; break;
- case XK_p: ksym = XK_Up; break;
case XK_k: /* delete right */
text[cursor] = '\0';
@@ -384,8 +383,8 @@ keypress(XKeyEvent *ev)
while (cursor > 0 && !strchr(worddelimiters, text[nextrune(-1)]))
insert(NULL, nextrune(-1) - cursor);
break;
- case XK_y: /* paste selection */
- case XK_Y:
+ case XK_p: /* paste selection */
+ case XK_P:
XConvertSelection(dpy, (ev->state & ShiftMask) ? clip : XA_PRIMARY,
utf8, utf8, win, CurrentTime);
return;