From d3d6285b03d102d5a303de0544e77dd3908cc282 Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Tue, 27 Dec 2011 23:29:29 +0000 Subject: delete all text on esc key press. svn path=/trunk/netsurf/; revision=13350 --- atari/toolbar.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/atari/toolbar.c b/atari/toolbar.c index 1e0af87ef..081ef43b1 100755 --- a/atari/toolbar.c +++ b/atari/toolbar.c @@ -705,6 +705,10 @@ bool tb_url_input( struct gui_window * gw, short nkc ) scrap_txt_write( &app, text ); free( text ); } + } + else if( ik == KEY_ESCAPE ) { + textarea_keypress( tb->url.textarea, KEY_SELECT_ALL ); + textarea_keypress( tb->url.textarea, KEY_DELETE_LEFT ); } else { ret = textarea_keypress( tb->url.textarea, ik ); -- cgit v1.2.3