[hackers] [dmenu] rebound paste to ^Y || Connor Lane Smith

From: <hg_AT_suckless.org>
Date: Fri, 12 Nov 2010 00:00:34 +0000 (UTC)

changeset: 375:58e52c62ec15
tag: tip
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Fri Nov 12 00:00:32 2010 +0000
files: dmenu.c
description:
rebound paste to ^Y

diff -r 4f5ad48e6a6a -r 58e52c62ec15 dmenu.c
--- a/dmenu.c Thu Nov 11 23:56:39 2010 +0000
+++ b/dmenu.c Fri Nov 12 00:00:32 2010 +0000
@@ -227,6 +227,9 @@
                         while(cursor > 0 && text[nextrune(-1)] != ' ')
                                 insert(NULL, nextrune(-1) - cursor);
                         break;
+ case XK_y: /* paste selection */
+ XConvertSelection(dc->dpy, XA_PRIMARY, utf8, utf8, win, CurrentTime);
+ return;
                 }
         }
         switch(ksym) {
@@ -264,10 +267,6 @@
                 sel = curr = matches;
                 calcoffsets();
                 break;
- case XK_Insert: /* paste selection */
- if(ev->state & ShiftMask)
- XConvertSelection(dc->dpy, XA_PRIMARY, utf8, utf8, win, CurrentTime);
- return;
         case XK_Left:
                 if(cursor > 0 && (!sel || !sel->left || lines > 0)) {
                         cursor = nextrune(-1);
Received on Fri Nov 12 2010 - 01:00:34 CET

This archive was generated by hypermail 2.2.0 : Fri Nov 12 2010 - 01:12:04 CET