Branch: refs/heads/master Author: Nick Treleaven ntrel002@gmail.com Committer: Nick Treleaven ntrel002@gmail.com Date: Sat, 03 Dec 2022 13:38:33 UTC Commit: 8dd9200e5c382fb471da54bd0bcc67db170c582c https://github.com/geany/geany/commit/8dd9200e5c382fb471da54bd0bcc67db170c58...
Log Message: ----------- Make New command focus editor
Modified Paths: -------------- src/callbacks.c src/keybindings.c
Modified: src/callbacks.c 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -91,7 +91,7 @@ static gboolean on_window_delete_event(GtkWidget *widget, GdkEvent *event, gpoin
void on_new1_activate(GtkMenuItem *menuitem, gpointer user_data) { - document_new_file(NULL, NULL, NULL); + keybindings_send_command(GEANY_KEY_GROUP_FILE, GEANY_KEYS_FILE_NEW); }
Modified: src/keybindings.c 1 lines changed, 1 insertions(+), 0 deletions(-) =================================================================== @@ -1447,6 +1447,7 @@ static gboolean cb_func_file_action(guint key_id) { case GEANY_KEYS_FILE_NEW: document_new_file(NULL, NULL, NULL); + cb_func_switch_action(GEANY_KEYS_FOCUS_EDITOR); break; case GEANY_KEYS_FILE_OPEN: on_open1_activate(NULL, NULL);
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).