Focus editor after entering a number in the goto line toolbar entry.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4239 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2009-09-27 11:06:04 +00:00
parent d4b03c6ee4
commit 6334ec1676
2 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,8 @@
* src/keybindings.c:
Only focus toolbar goto line entry when pressing keybinding if it's
visible (patch by Eugene Arshinov, thanks).
* src/callbacks.c:
Focus editor after entering a number in the goto line toolbar entry.
2009-09-24 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>

View File

@ -1279,6 +1279,8 @@ on_toolbutton_goto_entry_activate(GtkAction *action, const gchar *text, gpointer
if (! editor_goto_line(doc->editor, atoi(text) - 1))
utils_beep();
else
keybindings_send_command(GEANY_KEY_GROUP_FOCUS, GEANY_KEYS_FOCUS_EDITOR);
}