When hiding the messages window, set the input focus back to the editor widget (part of #1910393).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3676 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2009-03-31 19:01:31 +00:00
parent 8eb2028ab5
commit 08b0712fcc
2 changed files with 6 additions and 0 deletions

View File

@ -2,6 +2,9 @@
* doc/geany.txt, doc/geany.html, src/main.c:
Add widget names for the menubar and toolbar.
* src/msgwindow.c:
When hiding the messages window, set the input focus back to the
editor widget (part of #1910393).
2009-03-30 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>

View File

@ -42,6 +42,7 @@
#include "navqueue.h"
#include "editor.h"
#include "msgwindow.h"
#include "keybindings.h"
#include <string.h>
#include <stdlib.h>
@ -281,6 +282,8 @@ void msgwin_show_hide(gboolean show)
show);
ignore_callback = FALSE;
ui_widget_show_hide(ui_lookup_widget(main_widgets.window, "scrolledwindow1"), show);
/* set the input focus back to the editor */
keybindings_send_command(GEANY_KEY_GROUP_FOCUS, GEANY_KEYS_FOCUS_EDITOR);
}