Added a keyboard shortcut in embedded mode for "Open URL..."

This commit is contained in:
Pierre Pronchery 2012-11-29 12:29:24 +01:00
parent 1746aeab71
commit 597c752ffd
3 changed files with 11 additions and 0 deletions

View File

@ -497,6 +497,15 @@ static gboolean _switch_page_idle(gpointer data)
}
/* on_open_url */
void on_open_url(gpointer data)
{
Surfer * surfer = data;
on_file_open_url(surfer);
}
/* on_path_activate */
void on_path_activate(gpointer data)
{

View File

@ -71,6 +71,7 @@ void on_home(gpointer data);
void on_new_tab(gpointer data);
void on_new_window(gpointer data);
void on_normal_size(gpointer data);
void on_open_url(gpointer data);
void on_path_activate(gpointer data);
void on_preferences(gpointer data);
void on_refresh(gpointer data);

View File

@ -98,6 +98,7 @@ static const DesktopAccel _surfer_accel[] =
{
{ G_CALLBACK(on_close), GDK_CONTROL_MASK, GDK_KEY_W },
#ifdef EMBEDDED
{ G_CALLBACK(on_open_url), GDK_CONTROL_MASK, GDK_KEY_L },
{ G_CALLBACK(on_refresh), GDK_CONTROL_MASK, GDK_KEY_R },
{ G_CALLBACK(on_normal_size), GDK_CONTROL_MASK, GDK_KEY_0 },
{ G_CALLBACK(on_zoom_in), GDK_CONTROL_MASK, GDK_KEY_plus },