summaryrefslogtreecommitdiff
path: root/riscos/url_complete.c
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2005-02-04 18:07:27 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2005-02-04 18:07:27 +0000
commitb07582615bc805ed6b99820412e0f81c49e534c6 (patch)
tree7c2436947a23c420cafe48f64afbe1a83f912997 /riscos/url_complete.c
parent097b8e5bcdf41d9a25585c9a60bd46ab181d8717 (diff)
downloadnetsurf-b07582615bc805ed6b99820412e0f81c49e534c6.tar.gz
netsurf-b07582615bc805ed6b99820412e0f81c49e534c6.tar.bz2
[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
Diffstat (limited to 'riscos/url_complete.c')
-rw-r--r--riscos/url_complete.c15
1 files 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);
+ }
}