Page 1 of 1

Input field loses focus

PostPosted: Tue Nov 03, 2009 5:48 pm
by gennady

Goldendict is a very nice program, but one thing annoys me very much.


1) enter new word in the input field;

2) press Enter;

3) press Alt-S in order to hear sound of the word again;

4) switch to another application by Alt-Tab;

5) switch back and trying to input a new word, but...

it doesn't work. The input focus is in the menu at this moment. You type a few first characters and one of the submenus opens. If you type fast, you can even select one of the items in the menu. Then you realise what is going on and press Esc one or few times and try to type in your new word again. The same thing happens again because the input focus still in the menu.

This behaviour annoys me very much because at this moment I have to grab the mouse and click into the input field.

I think it would be great if after switching into the application you can type in words straight away.

Ubuntu 9.04, Qt 4.5.0
The latest build from Git, but this behaviour was few months ago too.

Re: Input field loses focus

PostPosted: Tue Nov 03, 2009 6:20 pm
by ikm
I'm not sure this is GoldenDict-related. For one, I don't have this behavior (though I'm on KDE4). And if I understand your description right, the same thing should happen with any application you alt-tab from and then back to, not just GD.

I suppose the program could focus on the word input each time it gets focus, but that would disrupt other possible user activities (e.g. imagine you read the article with the focus on its body and scroll using cursor keys, then switch to another app for a moment, then switch back to continue reading your article -- that'd disrupt that).

Re: Input field loses focus

PostPosted: Tue Nov 03, 2009 8:55 pm
by gennady
ikm wrote:I'm not sure this is GoldenDict-related.

It seems you are right.
GoldenDict works fine in Ubuntu 9.10 (Qt 4.5.2).