Focused field in filter dialog

Discussion of bugs and problems found in Altap Salamander. In your reports, please be as descriptive as possible, and report one incident per report. Do not post crash reports here, send us the generated bug report by email instead, please.
antp
Posts: 49
Joined: 27 Jan 2006, 22:18
Location: Bruxelles, Belgium
Contact:

Focused field in filter dialog

Post by antp »

Hello,
I noticed an "annoying" change in RC3: when filter is enabled, the first focused field is the radio button.
In RC2 it was the text box, allowing to directly type the filter after having pressed Ctrl+F12.
Or maybe that this was previously considered as a "bug"?
Petr Solin
ALTAP Staff
ALTAP Staff
Posts: 1112
Joined: 08 Dec 2005, 09:13
Location: Novy Bor, Czech Republic
Contact:

Post by Petr Solin »

It was fix for another bug. :) Situation: you are not using filter and when you open this dialog, editbox with mask is focused.

Well, I'll patch it to focus the editbox only if filter is used.
User avatar
SvA
Posts: 486
Joined: 29 Mar 2006, 02:41
Location: DE

Post by SvA »

Petr, I don't understand why you'd call this a bug. If no filter is active and you call up this dialog, the most obvious thing you will want to do is to set the filter.

You might consider to change the radio control to 'Use filter' by default in this situation and, in any case activate it on any key press or mouse click which does not move focus away from the edit box (i.e. any cursor moves or a click into the input field (for mouse clicks even when it transfers focus to the field, key presses only if it had it before already).
antp
Posts: 49
Joined: 27 Jan 2006, 22:18
Location: Bruxelles, Belgium
Contact:

Post by antp »

That's what I was also going to say, so I agree: in all cases that field is the best to focus. The behaviour that you describe is what was already in previous version if I remember well.
Petr Solin
ALTAP Staff
ALTAP Staff
Posts: 1112
Joined: 08 Dec 2005, 09:13
Location: Novy Bor, Czech Republic
Contact:

Post by Petr Solin »

I will not auto-focus the Use filter radiobox because if I did it you would not be able to find out if filter is used or not. Do not forget that filter symbol in Directory Line is displayed only when some files were hidden (filtered).
antp
Posts: 49
Joined: 27 Jan 2006, 22:18
Location: Bruxelles, Belgium
Contact:

Post by antp »

:? The question was about the text field, not the radio. In RC2 it opened like this:
Image
(edit: well, I should have selected the other radio button, but you see what I mean, the field contents was focused)
In RC3 it opens like this:
Image
Petr Solin
ALTAP Staff
ALTAP Staff
Posts: 1112
Joined: 08 Dec 2005, 09:13
Location: Novy Bor, Czech Republic
Contact:

Post by Petr Solin »

OK, I'll correct my sentense: I will not auto-select the Use filter radiobox and auto-focus following edit-box because if I did it you would not be able to find out if filter is used or not.

But if you are using filter, focus will be placed in edit-box.
antp
Posts: 49
Joined: 27 Jan 2006, 22:18
Location: Bruxelles, Belgium
Contact:

Post by antp »

Petr Solin wrote: But if you are using filter, focus will be placed in edit-box.
OK, thanks :)
Post Reply