From 07ae1a1ec9da36ea5aade331c7ac9e913a97b61e Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Wed, 9 Feb 2005 00:16:38 +0000 Subject: [project @ 2005-02-09 00:16:38 by rjw] Make URL completion only respond to Adjust clicks once. svn path=/import/netsurf/; revision=1509 --- riscos/url_complete.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'riscos/url_complete.c') diff --git a/riscos/url_complete.c b/riscos/url_complete.c index 6fc319527..56ae55e7a 100644 --- a/riscos/url_complete.c +++ b/riscos/url_complete.c @@ -499,8 +499,11 @@ void ro_gui_url_complete_redraw(wimp_draw *redraw) { /** * Handle mouse movements/clicks over the URL completion window. + * + * \param pointer the pointer state + * \param buttons whethere to react to mouse buttons */ -void ro_gui_url_complete_mouse_at(wimp_pointer *pointer) { +void ro_gui_url_complete_mouse_at(wimp_pointer *pointer, bool buttons) { wimp_window_state state; os_error *error; int selection, old_selection; @@ -553,9 +556,9 @@ void ro_gui_url_complete_mouse_at(wimp_pointer *pointer) { warn_user("WimpError", error->errmess); } } - + /* Select sets the text and launches */ - if (pointer->buttons == wimp_CLICK_SELECT) { + if ((pointer->buttons == wimp_CLICK_SELECT) && (buttons)) { g = ro_gui_window_lookup(url_complete_parent); if (!g) return; @@ -567,10 +570,9 @@ void ro_gui_url_complete_mouse_at(wimp_pointer *pointer) { 0); global_history_add_recent(url_complete_matches[url_complete_matches_selection]); ro_gui_url_complete_close(NULL, 0); - } /* Adjust just sets the text */ - if (pointer->buttons == wimp_CLICK_ADJUST) { + } else if ((pointer->buttons == wimp_CLICK_ADJUST) && (buttons)) { g = ro_gui_window_lookup(url_complete_parent); if (!g) return; -- cgit v1.2.3