diff options
-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; |