rebound paste to ^Y eeba6221
Connor Lane Smith · 2010-11-12 00:00 1 file(s) · +3 −4
dmenu.c +3 −4
227 227
			while(cursor > 0 && text[nextrune(-1)] != ' ')
228 228
				insert(NULL, nextrune(-1) - cursor);
229 229
			break;
230 +
		case XK_y:  /* paste selection */
231 +
			XConvertSelection(dc->dpy, XA_PRIMARY, utf8, utf8, win, CurrentTime);
232 +
			return;
230 233
		}
231 234
	}
232 235
	switch(ksym) {
264 267
		sel = curr = matches;
265 268
		calcoffsets();
266 269
		break;
267 -
	case XK_Insert:  /* paste selection */
268 -
		if(ev->state & ShiftMask)
269 -
			XConvertSelection(dc->dpy, XA_PRIMARY, utf8, utf8, win, CurrentTime);
270 -
		return;
271 270
	case XK_Left:
272 271
		if(cursor > 0 && (!sel || !sel->left || lines > 0)) {
273 272
			cursor = nextrune(-1);