aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor Lane Smith <cls@lubutu.com>2010-11-12 00:00:32 +0000
committerConnor Lane Smith <cls@lubutu.com>2010-11-12 00:00:32 +0000
commiteeba6221b1f2863800dc3490eb80f3b7adb14675 (patch)
treea6a5fc45f0d9c409bb418e5fc95967a6a2c48492
parenta0a99d10e1a019f74a8b2af4d5f8b47348e08a75 (diff)
downloaddmenu-eeba6221b1f2863800dc3490eb80f3b7adb14675.tar.gz
dmenu-eeba6221b1f2863800dc3490eb80f3b7adb14675.tar.bz2
dmenu-eeba6221b1f2863800dc3490eb80f3b7adb14675.zip
rebound paste to ^Y
-rw-r--r--dmenu.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/dmenu.c b/dmenu.c
index 9d6088b..5c77560 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -227,6 +227,9 @@ keypress(XKeyEvent *ev) {
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 @@ keypress(XKeyEvent *ev) {
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);