9term: cut, snarf, and paste with keyboard on Mac

R=rsc
CC=codebot
http://codereview.appspot.com/854042
This commit is contained in:
David Swasey 2010-04-13 13:16:36 -07:00 committed by Russ Cox
parent 80c90f271e
commit 7b08cf334b
2 changed files with 17 additions and 0 deletions

View file

@ -8,6 +8,7 @@ André Günther <Andre.G@gmx.de>
Anthony Sorace <a@9srv.net>
Arvindh Rajesh Tamilmani <art@a-30.net>
Benjamin Huntsman <BHuntsman@mail2.cu-portland.edu>
David Swasey <david.swasey@gmail.com>
Enrique Soriano <enrique.soriano@gmail.com>
Eoghan Sherry <ejsherry@gmail.com>
Fazlul Shahriar <fshahriar@gmail.com>

View file

@ -667,6 +667,22 @@ wkeyctl(Window *w, Rune r)
waddraw(w, &r, 1);
return;
}
if(r == Kcmd+'x'){
wsnarf(w);
wcut(w);
wscrdraw(w);
return;
}
if(r == Kcmd+'c'){
wsnarf(w);
return;
}
if(r == Kcmd+'v'){
riogetsnarf();
wpaste(w);
wscrdraw(w);
return;
}
if(r != 0x7F){
wsnarf(w);
wcut(w);