diff options
-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 ); } |