mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
9term: cut, snarf, and paste with keyboard on Mac
R=rsc CC=codebot http://codereview.appspot.com/854042
This commit is contained in:
parent
80c90f271e
commit
7b08cf334b
2 changed files with 17 additions and 0 deletions
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue