r22143 - In the "New Customer" window, set keyboard focus to customer field.
Christian Stimming
christian at cstimming.de
Tue Oct 23 08:39:15 EDT 2012
Am Montag, 22. Oktober 2012, 16:46:27 schrieb Geert Janssens:
> > @@ -2432,6 +2432,12 @@ gnc_invoice_window_new_invoice (QofBook *bookp,
> > const GncOwner *owner,
> >
> > gnc_invoice_update_window (iw, iw->dialog);
> > gnc_table_refresh_gui (gnc_entry_ledger_get_table
> > (iw->ledger),
> >
> > TRUE);
> >
> > + // The customer choice widget should have keyboard focus
> > + if (GNC_IS_GENERAL_SEARCH(iw->owner_choice))
> > + {
> > + gnc_general_search_grab_focus(GNC_GENERAL_SEARCH(iw->owner_choice));
> > + }
> > +
> >
> > return iw;
> >
> > }
>
> Christian,
>
> I'm slightly confused by this code. The commit message talks about
> setting the focus in the "New Customer" window, but the code actually
> sets the focus in the "New Invoice" dialog. Was this intended ?
I guess the commit message is wrong. Clearly the commit and also the more
important feature is about the "New invoice" dialog, and there the focus
should go to the customer field.
> Personally, in the new invoice dialog I would prefer the focus to be on
> the invoice id. I have to move back to that field for each bill/invoice
> I create.
>
> I can imagine that if you have set a counter for the invoice id, it
> would be ok to focus directly on the customer field, but for vendor
> bills the id depends on the vendor and can't be set automatically.
Yes, you are probably right. I was thinking only about customer invoices here,
where the id was set automatically by the counter anyway. (This change for the
"New invoice" window was a user request in any case, by private message.) For
a vendor invoice with a given id, this is different. Feel free to add an
appropriate case distinction here, as long as the customer invoice dialog
keeps the current behaviour.
Regards,
Christian
More information about the gnucash-devel
mailing list