From b07582615bc805ed6b99820412e0f81c49e534c6 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Fri, 4 Feb 2005 18:07:27 +0000 Subject: [project @ 2005-02-04 18:07:27 by rjw] Adjust clicking on a suggested URL filters to the prefix and doesn't launch. svn path=/import/netsurf/; revision=1491 --- riscos/url_complete.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/riscos/url_complete.c b/riscos/url_complete.c index 2b945d878..268f08597 100644 --- a/riscos/url_complete.c +++ b/riscos/url_complete.c @@ -552,9 +552,8 @@ void ro_gui_url_complete_mouse_at(wimp_pointer *pointer) { } } - /* clicks */ - if ((pointer->buttons == wimp_CLICK_SELECT) || - (pointer->buttons == wimp_CLICK_ADJUST)) { + /* Select sets the text and launches */ + if (pointer->buttons == wimp_CLICK_SELECT) { g = ro_gui_window_lookup(url_complete_parent); if (!g) return; @@ -567,6 +566,16 @@ void ro_gui_url_complete_mouse_at(wimp_pointer *pointer) { ro_gui_url_complete_close(NULL, 0); } + /* Adjust just sets the text */ + if (pointer->buttons == wimp_CLICK_ADJUST) { + g = ro_gui_window_lookup(url_complete_parent); + if (!g) + return; + ro_gui_set_icon_string(g->toolbar->toolbar_handle, + ICON_TOOLBAR_URL, + url_complete_matches[url_complete_matches_selection]); + ro_gui_url_complete_keypress(g, 0); + } } -- cgit v1.2.3