added shortcut F6 to switch to the VTE widget
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@44 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
bd79cecd60
commit
2791a9fa28
@ -995,6 +995,12 @@ on_window_key_press_event (GtkWidget *widget,
|
||||
gtk_widget_grab_focus(lookup_widget(app->window, "textview_scribble"));
|
||||
return TRUE;
|
||||
}
|
||||
if (event->keyval == GDK_F6 && app->have_vte)
|
||||
{
|
||||
gtk_notebook_set_current_page(GTK_NOTEBOOK(msgwindow.notebook), MSG_VTE);
|
||||
gtk_widget_grab_focus(vc->vte);
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@ -1146,6 +1152,18 @@ on_editor_key_press_event (GtkWidget *widget,
|
||||
{
|
||||
gtk_notebook_set_current_page(GTK_NOTEBOOK(msgwindow.notebook), MSG_SCRATCH);
|
||||
gtk_widget_grab_focus(lookup_widget(app->window, "textview_scribble"));
|
||||
ret = TRUE;
|
||||
break;
|
||||
}
|
||||
case GDK_F6:
|
||||
{
|
||||
if (app->have_vte)
|
||||
{
|
||||
gtk_notebook_set_current_page(GTK_NOTEBOOK(msgwindow.notebook), MSG_VTE);
|
||||
gtk_widget_grab_focus(vc->vte);
|
||||
break;
|
||||
}
|
||||
ret = TRUE;
|
||||
break;
|
||||
}
|
||||
/* following code is unusable unless I get a signal for a line changed, don't want to do this with
|
||||
|
Loading…
x
Reference in New Issue
Block a user