summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2011-12-27 23:29:29 +0000
committerOle Loots <ole@monochrom.net>2011-12-27 23:29:29 +0000
commitd3d6285b03d102d5a303de0544e77dd3908cc282 (patch)
tree5bd035274dacd7ae195bf6f60e34a0d18fa4494e
parent13a2ceb766fd6cc495b03c639c04f10df8cd8193 (diff)
downloadnetsurf-d3d6285b03d102d5a303de0544e77dd3908cc282.tar.gz
netsurf-d3d6285b03d102d5a303de0544e77dd3908cc282.tar.bz2
delete all text on esc key press.
svn path=/trunk/netsurf/; revision=13350
-rwxr-xr-xatari/toolbar.c4
1 files changed, 4 insertions, 0 deletions
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 );