diff options
author | Ole Loots <ole@monochrom.net> | 2011-11-30 22:37:57 +0000 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2011-11-30 22:37:57 +0000 |
commit | 9efb276f977a9db2f378930c213a5c1f21098b57 (patch) | |
tree | 5e5305ff9ede30d134fc46e8c403354ca23336ce /atari/toolbar.c | |
parent | 1f4ab6384c128d3aa00627bf51e704cce3484178 (diff) | |
download | netsurf-9efb276f977a9db2f378930c213a5c1f21098b57.tar.gz netsurf-9efb276f977a9db2f378930c213a5c1f21098b57.tar.bz2 |
Copy (whole) URL on Copy key.
svn path=/trunk/netsurf/; revision=13211
Diffstat (limited to 'atari/toolbar.c')
-rwxr-xr-x | atari/toolbar.c | 12 |
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 ); } |