mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 04:56:50 +03:00
[project @ 2005-02-05 01:08:00 by rjw]
Make F2 automatically open URL completion. svn path=/import/netsurf/; revision=1493
This commit is contained in:
parent
430d7bc1ae
commit
88da8ac018
@ -1445,11 +1445,13 @@ bool ro_gui_window_keypress(struct gui_window *g, int key, bool toolbar)
|
||||
case wimp_KEY_F2:
|
||||
if (!g->toolbar)
|
||||
return false;
|
||||
ro_gui_url_complete_close(NULL, 0);
|
||||
ro_gui_set_icon_string(g->toolbar->toolbar_handle,
|
||||
ICON_TOOLBAR_URL, "www.");
|
||||
xwimp_set_caret_position(g->toolbar->toolbar_handle,
|
||||
ICON_TOOLBAR_URL, 0, 0, -1, 4);
|
||||
ro_gui_url_complete_start(g);
|
||||
ro_gui_url_complete_keypress(g, wimp_KEY_DOWN);
|
||||
return true;
|
||||
|
||||
case wimp_KEY_CONTROL + wimp_KEY_F2: /* Close window. */
|
||||
|
Loading…
Reference in New Issue
Block a user