diff options
-rw-r--r-- | dmenu.1 | 2 | ||||
-rw-r--r-- | dmenu.c | 6 |
2 files changed, 7 insertions, 1 deletions
@@ -173,6 +173,8 @@ Paste from primary X selection .TP .B C\-Y Paste from X clipboard +.B C\-V +Paste from X clipboard .TP .B M\-b Move cursor to the start of the current word @@ -439,7 +439,11 @@ keypress(XKeyEvent *ev) case XK_Y: XConvertSelection(dpy, (ev->state & ShiftMask) ? clip : XA_PRIMARY, utf8, utf8, win, CurrentTime); - return; + case XK_v: /* paste selection */ + case XK_V: + XConvertSelection(dpy, (ev->state & ShiftMask) ? clip : XA_PRIMARY, + utf8, utf8, win, CurrentTime); + return; case XK_Left: case XK_KP_Left: movewordedge(-1); |