diff --git a/src/business/business-gnome/dialog-job.c b/src/business/business-gnome/dialog-job.c index 13db4e9ee3..3859cce141 100644 --- a/src/business/business-gnome/dialog-job.c +++ b/src/business/business-gnome/dialog-job.c @@ -402,6 +402,14 @@ gnc_job_new_window (QofBook *bookp, GncOwner *owner, GncJob *job) gtk_widget_show_all (jw->dialog); + // The job name should have keyboard focus + gtk_widget_grab_focus(jw->name_entry); + // Or should the owner field have focus? +// if (GNC_IS_GENERAL_SEARCH(jw->cust_edit)) +// { +// gnc_general_search_grab_focus(GNC_GENERAL_SEARCH(jw->cust_edit)); +// } + g_object_unref(G_OBJECT(builder)); return jw; diff --git a/src/business/business-gnome/dialog-order.c b/src/business/business-gnome/dialog-order.c index 4d7ea591cb..29961d3584 100644 --- a/src/business/business-gnome/dialog-order.c +++ b/src/business/business-gnome/dialog-order.c @@ -46,6 +46,7 @@ #include "dialog-invoice.h" #include "business-gnome-utils.h" #include "dialog-date-close.h" +#include "gnome-search/gnc-general-search.h" #define DIALOG_NEW_ORDER_CM_CLASS "dialog-new-order" #define DIALOG_EDIT_ORDER_CM_CLASS "dialog-edit-order" @@ -738,6 +739,12 @@ gnc_order_window_new_order (QofBook *bookp, GncOwner *owner) /* Now fill in a lot of the pieces and display properly */ gnc_order_update_window (ow); + // The customer choice widget should have keyboard focus + if (GNC_IS_GENERAL_SEARCH(ow->owner_choice)) + { + gnc_general_search_grab_focus(GNC_GENERAL_SEARCH(ow->owner_choice)); + } + /* Maybe set the reference */ gnc_order_owner_changed_cb (ow->owner_choice, ow); diff --git a/src/business/business-gnome/dialog-payment.c b/src/business/business-gnome/dialog-payment.c index 56aa495a3f..2c1a884cd5 100644 --- a/src/business/business-gnome/dialog-payment.c +++ b/src/business/business-gnome/dialog-payment.c @@ -47,6 +47,7 @@ #include "business-gnome-utils.h" #include "dialog-transfer.h" +#include "gnome-search/gnc-general-search.h" #define DIALOG_PAYMENT_CUSTOMER_CM_CLASS "customer-payment-dialog" #define DIALOG_PAYMENT_VENDOR_CM_CLASS "vendor-payment-dialog" @@ -863,6 +864,12 @@ new_payment_window (GncOwner *owner, QofBook *book, GncInvoice *invoice) gtk_widget_show_all (pw->dialog); g_object_unref(G_OBJECT(builder)); + // The customer choice widget should have keyboard focus + if (GNC_IS_GENERAL_SEARCH(pw->owner_choice)) + { + gnc_general_search_grab_focus(GNC_GENERAL_SEARCH(pw->owner_choice)); + } + /* Warn the user if they have no valid post-to accounts */ { const gchar *text;