Fix pressing escape in the sidebar and toolbar focus the editor.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3338 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2008-12-07 19:11:13 +00:00
parent b3dd5743e0
commit 7f3de8507f
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-12-07 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* src/callbacks.c:
Fix pressing escape in the sidebar and toolbar focus the editor.
2008-12-06 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* scintilla/scintilla_changes.patch:

View File

@ -2104,8 +2104,10 @@ on_escape_key_press_event (GtkWidget *widget,
GdkEventKey *event,
gpointer user_data)
{
guint state = event->state & GEANY_KEYS_MODIFIER_MASK;
/* make pressing escape in the sidebar and toolbar focus the editor */
if (event->keyval == GDK_Escape && event->state == 0)
if (event->keyval == GDK_Escape && state == 0)
{
keybindings_send_command(GEANY_KEY_GROUP_FOCUS, GEANY_KEYS_FOCUS_EDITOR);
return TRUE;