diff --git a/LICENSE b/LICENSE index 3afd28e..46de1af 100644 --- a/LICENSE +++ b/LICENSE @@ -10,6 +10,7 @@ MIT/X Consortium License © 2010-2012 Connor Lane Smith © 2014-2020 Hiltjo Posthuma © 2015-2019 Quentin Rameau +© 2021 Alexander Weinhold Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/dmenu.1 b/dmenu.1 index 323f93c..8b16142 100644 --- a/dmenu.1 +++ b/dmenu.1 @@ -160,10 +160,7 @@ Delete line left .B C\-w Delete word left .TP -.B C\-y -Paste from primary X selection -.TP -.B C\-Y +.B C\-v Paste from X clipboard .TP .B M\-b diff --git a/dmenu.c b/dmenu.c index 65f25ce..15e16aa 100644 --- a/dmenu.c +++ b/dmenu.c @@ -354,10 +354,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: - XConvertSelection(dpy, (ev->state & ShiftMask) ? clip : XA_PRIMARY, - utf8, utf8, win, CurrentTime); + case XK_v: + XConvertSelection(dpy, clip, utf8, utf8, win, CurrentTime); return; case XK_Left: movewordedge(-1);