summaryrefslogtreecommitdiff
path: root/atari/toolbar.c
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2011-11-29 21:51:18 +0000
committerOle Loots <ole@monochrom.net>2011-11-29 21:51:18 +0000
commitdbffd36e1430872671602812408e18c253f045af (patch)
treed60f69042843bb67bc7a59f7b9cdfbc9cce633f9 /atari/toolbar.c
parent4313de05845b79d3887603af6aacfff0f327636c (diff)
downloadnetsurf-dbffd36e1430872671602812408e18c253f045af.tar.gz
netsurf-dbffd36e1430872671602812408e18c253f045af.tar.bz2
Handle focus event within window_set_focus, select all when url input gets focus
svn path=/trunk/netsurf/; revision=13206
Diffstat (limited to 'atari/toolbar.c')
-rwxr-xr-xatari/toolbar.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/atari/toolbar.c b/atari/toolbar.c
index 0b7af6f37..79754b268 100755
--- a/atari/toolbar.c
+++ b/atari/toolbar.c
@@ -312,12 +312,10 @@ void __CDECL evnt_url_click( COMPONENT *c, long buff[8] )
/* TODO: reset mouse state of browser window? */
/* select whole text when newly focused, otherwise set caret to end of text */
if( !window_url_widget_has_focus(gw) ) {
- // TODO select all ( needs textarea change )
window_set_focus( gw, URL_WIDGET, (void*)&tb->url );
- textarea_mouse_action( tb->url.textarea, BROWSER_MOUSE_PRESS_1, mx, my );
} else {
if( mb & 1 ) {
- /* TODO: if the button is dragging, report draw event */
+ /* TODO: if the button is dragging, report drag event */
} else {
/* TODO: recognize click + shift key */
int mstate = BROWSER_MOUSE_PRESS_1;