| Date: Tue, 13 Apr 2010 13:16:36 -0700
9term: cut, snarf, and paste with keyboard on Mac
R=rsc
CC=codebot
http://codereview.appspot.com/854042
Diffstat:
M CONTRIBUTORS | 1 +
M src/cmd/9term/wind.c | 16 ++++++++++++++++
2 files changed, 17 insertions(+), 0 deletions(-)
--- |
| t@@ -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); |