AltGr not working in quicksearch/quickfilter

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

User avatar
za222
Member
Member
Posts: 146
Joined: 2003-03-11, 17:19 UTC
Location: Germany

AltGr not working in quicksearch/quickfilter

Post by *za222 »

It seems AltGr isn't working in quickfilter.
If i want to search for "[" for example (AltGr-8 on german keyboard) i only get "8" as a result.

Is there a reason for this limitation or is it a bug?

A working AltGr would be essential if you want to use something like that google like quicksearch in regex mode, where you need "\" (AltGr-ß)
User avatar
petermad
Power Member
Power Member
Posts: 16009
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

It works as long as you don't have any file that starts with 8 in the directory.

See: http://www.ghisler.ch/board/viewtopic.php?p=174904#174904
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hi, za222.

I guess this is a misunderstanding. You will be able to enter characters like [ or ] or } or { provided the current folder holds filenames which use such characters.
The quick search edit box will reject any character which is not used in the current file panel by any filename.
You cannot filter using an unused character. :wink:

Plus what petermad wrote is true, too.
So in case there a matching files having the characters 8, 9, 7, 0 (see the special characters above), T.C. seems to ignore the modifier key AltGr. :?

Kind regards,
Karl
Last edited by karlchen on 2009-06-14, 14:04 UTC, edited 1 time in total.
User avatar
petermad
Power Member
Power Member
Posts: 16009
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2karlchen

Please read http://www.ghisler.ch/board/viewtopic.php?p=174904#174904 carefully.

If you have files that starts with the same letters as the AltGr modified letter for example e and €, then TC ignores the AltGr press when you search for €, and finds e in stead.

I used € and e as an example because it is also used on German keyboards.

To reproduce:
1. make two files called e and € in an empty dir.
2. quicksearch for € by typing AltGr+e in the search field - not possible!
So your experience is totally unrelated to the AltGr key.
Perhaps not ;-)
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hi, Peter.

Having read your previous post I had to correct mine. :oops:

Cheers,
Karl
User avatar
za222
Member
Member
Posts: 146
Joined: 2003-03-11, 17:19 UTC
Location: Germany

Post by *za222 »

It has nothing to do with the files in the panel (i have files that contain "[" and i am using wildcards in the beginning anyway, like "*asdf*[").

I narrowed the problem down:

If I select ALT+Letter or CTRL+ALT+Letter in the options, AltGr does NOT work at all!
If I select Letter only it does work.

So it's a problem in the implementation.
User avatar
petermad
Power Member
Power Member
Posts: 16009
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

If I select ALT+Letter or CTRL+ALT+Letter in the options, AltGr does NOT work at all!
Note quite correct - but it is correct that you can't open the search dialog with an AltGr letter, but once you got it opened (with fx Alt+* or Ctrl+Alt+*) you can use AltGr letters provided the ordinary letter on the key doesn't match too.

On the other hand when using the "Letter+search dialog" option, AltGr letters can be entered whithout problems.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
za222
Member
Member
Posts: 146
Joined: 2003-03-11, 17:19 UTC
Location: Germany

Post by *za222 »

petermad wrote:On the other hand when using the "Letter+search dialog" option, AltGr letters can be entered whithout problems.
Yeah it's weird.
I think this needs some general rework of the AltGr support.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

So I was right that you had Ctrl+Alt+Letters as search option (see other thread - why are there two anyway?).

Windows sends the same message for Ctrl+Alt+Letters and AltGr+Letters, that's why the two cannot be distinguished.
Author of Total Commander
https://www.ghisler.com
User avatar
za222
Member
Member
Posts: 146
Joined: 2003-03-11, 17:19 UTC
Location: Germany

Post by *za222 »

OK, i understand why it can't work as first character.
But wouldn't it be possible that as soon as the search window appears, every hotkey is checked exactly the way it's being sent?

So that in this state
CTRL-ALT-8 is really meant to do [
and not
CTRL-ALT (activate search) + 8
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The idea why Ctrl+Alt is still checked is that the user may keep pressing AltGr while quick search is already open...
Author of Total Commander
https://www.ghisler.com
User avatar
za222
Member
Member
Posts: 146
Joined: 2003-03-11, 17:19 UTC
Location: Germany

Post by *za222 »

Maybe that could be realized with an ini-setting for advanced users?

Actually this behaviour is a bit irritating anway:
Since now there is also the option to use CTRL-S to open the filter in 7.5 it makes no sense to check if CTRL+ALT is still pressed.
User avatar
petermad
Power Member
Power Member
Posts: 16009
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2ghisler(Author)
Windows sends the same message for Ctrl+Alt+Letters and AltGr+Letters, that's why the two cannot be distinguished.
But Why does that inflict when one is using the Alt+letters option, which behaves the same way as Ctrl+Alt+letter option ?
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
za222
Member
Member
Posts: 146
Joined: 2003-03-11, 17:19 UTC
Location: Germany

Post by *za222 »

Because it checks for pressed ALT in that case
and pressing CTRL_ALT_8 would then only be interpreted as CTRL_8 which still is 8
User avatar
petermad
Power Member
Power Member
Posts: 16009
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Because it checks for pressed ALT in that case
Of course - I mean why does TC check for only Alt and not for Ctrl+Alt
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply