select accounts by name: focus off tab

Tommy Trussell tommy.trussell at gmail.com
Thu Apr 2 15:15:10 EDT 2009


On Thu, Apr 2, 2009 at 1:51 PM, Charles Day <cedayiv at gmail.com> wrote:
> On Thu, Apr 2, 2009 at 9:34 AM, Tommy Trussell <tommy.trussell at gmail.com>
> wrote:
>>
>> I'm running GnuCash 2.2.6 on Ubuntu 8.10 Intrepid. I discovered quite
>> by accident that I could SOMETIMES select an account by typing the
>> first few letters of the account name, but sometimes not... SO I just
>> did a few tests to figure out why...
>>
>> When I have focus on any account line (by clicking on an account in
>> the Accounts list, NOT by clicking on the Accounts tab), I can select
>> any account in the list, IF it is not collapsed into a superior
>> account, by typing the first few characters of the account name. If I
>> leave your hands off the mouse, I can open the account by pressing the
>> Enter key, enter stuff, close the tab with Ctrl-W, select another
>> account, and so forth.
>>
>> For example, to select my account: Assets:Current Assets:Checks Received
>> I can type type "checks" to select it (as long as it is not collapsed
>> under Current Assets or Assets).
>>
>> After I click on the Accounts tab, I cannot select an account by
>> typing its name.
>>
>> It would be cool if the focus went to the Accounts list when you
>> clicked the tab so you can just start typing the account name.
>
> The "search" functionality you are seeing is built into the GtkTreeView
> control and isn't part of GnuCash.  (And it is actually broken in some
> version of Gtk). It could probably be customized to be even more useful.
> Right now if you click on the tab then focus goes to the first column
> header. (At least for me, running trunk on OS X/MacPorts/Quartz.) Putting
> focus on the list definitely seems better. For now, you can just hit the Tab
> key to move to the list.

I see the Tab key behavior now, but unfortunately when the list itself
has the focus there's no indication (other than that the tab, the
column header and the status line at the bottom DON'T have the focus
anymore).

It's too bad the Tab key highlight doesn't follow the focus into the
GtkTreeView control somehow... the current behavior would be very
confusing to document, yet I consider it very handy other than the
"magic incantations" to get it to work.


More information about the gnucash-user mailing list