mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +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>
|
Anthony Sorace <a@9srv.net>
|
||||||
Arvindh Rajesh Tamilmani <art@a-30.net>
|
Arvindh Rajesh Tamilmani <art@a-30.net>
|
||||||
Benjamin Huntsman <BHuntsman@mail2.cu-portland.edu>
|
Benjamin Huntsman <BHuntsman@mail2.cu-portland.edu>
|
||||||
|
David Swasey <david.swasey@gmail.com>
|
||||||
Enrique Soriano <enrique.soriano@gmail.com>
|
Enrique Soriano <enrique.soriano@gmail.com>
|
||||||
Eoghan Sherry <ejsherry@gmail.com>
|
Eoghan Sherry <ejsherry@gmail.com>
|
||||||
Fazlul Shahriar <fshahriar@gmail.com>
|
Fazlul Shahriar <fshahriar@gmail.com>
|
||||||
|
|
|
@ -667,6 +667,22 @@ wkeyctl(Window *w, Rune r)
|
||||||
waddraw(w, &r, 1);
|
waddraw(w, &r, 1);
|
||||||
return;
|
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){
|
if(r != 0x7F){
|
||||||
wsnarf(w);
|
wsnarf(w);
|
||||||
wcut(w);
|
wcut(w);
|
||||||
|
|
Loading…
Reference in a new issue