diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2005-02-09 00:16:38 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2005-02-09 00:16:38 +0000 |
commit | 07ae1a1ec9da36ea5aade331c7ac9e913a97b61e (patch) | |
tree | 4797dee374dcf143b072c38cc84fa6acbca13da0 /riscos/url_complete.c | |
parent | 06a6a902c6e48ced47157ab57ffa3e3c1d410398 (diff) | |
download | netsurf-07ae1a1ec9da36ea5aade331c7ac9e913a97b61e.tar.gz netsurf-07ae1a1ec9da36ea5aade331c7ac9e913a97b61e.tar.bz2 |
[project @ 2005-02-09 00:16:38 by rjw]
Make URL completion only respond to Adjust clicks once.
svn path=/import/netsurf/; revision=1509
Diffstat (limited to 'riscos/url_complete.c')
-rw-r--r-- | riscos/url_complete.c | 12 |
1 files changed, 7 insertions, 5 deletions
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; |