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
|
|
@ -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…
Add table
Add a link
Reference in a new issue