Kaydet (Commit) 8b084256 authored tarafından Nick Treleaven's avatar Nick Treleaven

Re-enable focus commands in the VTE.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/plugin-keybindings@2301 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 38f2f67b
......@@ -3,6 +3,8 @@
* src/prefs.c:
Fix segfault when setting custom keybindings in Prefs dialog.
Fix clearing a shortcut when overriding it in Prefs dialog.
* src/keybindings.c:
Re-enable focus commands in the VTE.
2008-02-29 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
......
......@@ -798,7 +798,7 @@ static gboolean set_sensitive(gpointer widget)
static gboolean check_vte(GdkModifierType state, guint keyval)
{
/*guint i;*/
guint i;
GtkWidget *widget;
if (! vc->enable_bash_keys)
......@@ -811,14 +811,14 @@ static gboolean check_vte(GdkModifierType state, guint keyval)
if (state == 0 && (keyval < GDK_F1 || keyval > GDK_F35)) /* e.g. backspace */
return FALSE;
#if 0 /* tmp */
/* make focus commands override any bash commands */
for (i = GEANY_KEYS_GROUP_FOCUS; i < GEANY_KEYS_GROUP_TABS; i++)
for (i = 0; i < GEANY_KEYS_FOCUS_COUNT; i++)
{
if (state == keys[i]->mods && keyval == keys[i]->key)
KeyBinding *kb = keybindings_lookup_item(GEANY_KEYGROUP_FOCUS, i);
if (state == kb->mods && keyval == kb->key)
return FALSE;
}
#endif
/* Temporarily disable the menus to prevent conflicting menu accelerators
* from overriding the VTE bash shortcuts.
......
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