diff options
author | c | 2023-11-27 20:02:46 -0500 |
---|---|---|
committer | c | 2023-11-27 20:02:46 -0500 |
commit | eabf70bdbe4e9c3f938ed763c550b10c5413f3ea (patch) | |
tree | 7fd6348b407a76258be9a67012828db72dd2a238 | |
parent | 32869c614bbd086a94243978abd3344804e41036 (diff) |
Make the paste keybind make sense.
-rw-r--r-- | dmenu.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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; |