Select the text in the URL bar on Ctrl-A if the widget has the focus, rather

than the document text. 
Thanks to Paweł Blokus <pblokus@gmail.com> for the patch.

svn path=/trunk/netsurf/; revision=6659
This commit is contained in:
Rob Kendrick 2009-02-28 20:02:09 +00:00
parent 460460b493
commit 5b53bb6baa

View File

@ -777,9 +777,14 @@ MENUHANDLER(select_all)
struct gtk_scaffolding *gw = (struct gtk_scaffolding *)g;
struct browser_window *bw = nsgtk_get_browser_for_gui(gw->top_level);
LOG(("Selecting all text"));
selection_select_all(bw->sel);
if (GTK_WIDGET_HAS_FOCUS(gw->url_bar)) {
LOG(("Selecting all URL bar text"));
gtk_editable_select_region(GTK_EDITABLE(gw->url_bar), 0, -1);
} else {
LOG(("Selecting all document text"));
selection_select_all(bw->sel);
}
return TRUE;
}