Kaydet (Commit) 0dd090e6 authored tarafından Nick Treleaven's avatar Nick Treleaven

Also ignore Ctrl-L for VTE bash command.

Allow 'Switch to editor' command to override any bash commands.
Also disable the popup menu to avoid VTE bash conflicts.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1916 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 4ff90adf
2007-09-28 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/keybindings.c:
Also ignore Ctrl-L for VTE bash command.
Allow 'Switch to editor' command to override any bash commands.
Also disable the popup menu to avoid VTE bash conflicts.
2007-09-27 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* src/keyfile.c:
......
......@@ -680,7 +680,7 @@ static gboolean check_vte(GdkEventKey *event, guint keyval)
#ifndef HAVE_VTE
return FALSE;
#else
GtkWidget *menubar;
GtkWidget *widget;
if (! vte_info.have_vte)
return FALSE;
......@@ -699,6 +699,7 @@ static gboolean check_vte(GdkEventKey *event, guint keyval)
case GDK_c:
case GDK_d:
case GDK_e:
case GDK_l:
case GDK_k:
case GDK_q:
case GDK_r:
......@@ -710,12 +711,20 @@ static gboolean check_vte(GdkEventKey *event, guint keyval)
default:
return FALSE;
}
/* Temporarily disable the menubar to prevent conflicting menu accelerators.
if (event->state == keys[GEANY_KEYS_SWITCH_EDITOR]->mods &&
keyval == keys[GEANY_KEYS_SWITCH_EDITOR]->key)
return FALSE; // make switch to editor override any bash commands
/* Temporarily disable the menus to prevent conflicting menu accelerators
* from overriding the VTE bash shortcuts.
* Ideally we would just somehow disable the menubar without redrawing it,
* but maybe that's not possible. */
menubar = lookup_widget(app->window, "menubar1");
gtk_widget_set_sensitive(menubar, FALSE);
g_idle_add(&set_sensitive, (gpointer) menubar);
widget = lookup_widget(app->window, "menubar1");
gtk_widget_set_sensitive(widget, FALSE);
g_idle_add(&set_sensitive, (gpointer) widget);
widget = app->popup_menu;
gtk_widget_set_sensitive(widget, FALSE);
g_idle_add(&set_sensitive, (gpointer) widget);
return TRUE;
#endif
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment