diff options
author | Ole Loots <ole@monochrom.net> | 2011-12-27 23:29:29 +0000 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2011-12-27 23:29:29 +0000 |
commit | d3d6285b03d102d5a303de0544e77dd3908cc282 (patch) | |
tree | 5bd035274dacd7ae195bf6f60e34a0d18fa4494e /atari | |
parent | 13a2ceb766fd6cc495b03c639c04f10df8cd8193 (diff) | |
download | netsurf-d3d6285b03d102d5a303de0544e77dd3908cc282.tar.gz netsurf-d3d6285b03d102d5a303de0544e77dd3908cc282.tar.bz2 |
delete all text on esc key press.
svn path=/trunk/netsurf/; revision=13350
Diffstat (limited to 'atari')
-rwxr-xr-x | atari/toolbar.c | 4 |
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 );
|