summaryrefslogtreecommitdiff
path: root/atari
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2011-11-30 22:37:57 +0000
committerOle Loots <ole@monochrom.net>2011-11-30 22:37:57 +0000
commit9efb276f977a9db2f378930c213a5c1f21098b57 (patch)
tree5e5305ff9ede30d134fc46e8c403354ca23336ce /atari
parent1f4ab6384c128d3aa00627bf51e704cce3484178 (diff)
downloadnetsurf-9efb276f977a9db2f378930c213a5c1f21098b57.tar.gz
netsurf-9efb276f977a9db2f378930c213a5c1f21098b57.tar.bz2
Copy (whole) URL on Copy key.
svn path=/trunk/netsurf/; revision=13211
Diffstat (limited to 'atari')
-rwxr-xr-xatari/toolbar.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/atari/toolbar.c b/atari/toolbar.c
index 79754b268..e08124dbd 100755
--- a/atari/toolbar.c
+++ b/atari/toolbar.c
@@ -674,6 +674,18 @@ bool tb_url_input( struct gui_window * gw, short nkc )
ret = true;
}
}
+ else if( ik == KEY_COPY_SELECTION ){
+ // copy whole text
+ char * text;
+ int len;
+ len = textarea_get_text( tb->url.textarea, NULL, 0 );
+ text = malloc( len+1 );
+ if( text ){
+ textarea_get_text( tb->url.textarea, text, len+1 );
+ scrap_txt_write( &app, text );
+ free( text );
+ }
+ }
else {
ret = textarea_keypress( tb->url.textarea, ik );
}