Behaviour change for cm_GoToDir

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
tony23
New Member
New Member
Posts: 1
Joined: 2023-09-11, 09:32 UTC

Behaviour change for cm_GoToDir

Post by *tony23 »

Not sure if this is a bug or an intended change in version 11.

I have a keyboard remapping configured so that ENTER uses the cm_GoToDir command. This is to avoid running or opening files if I accidentaly press enter when they are selected.
Up to version 10.52 this has been working fine, but in version 11 having this remapping defined prevents changing drives using the Alt+F1 or Alt+F2 shortcuts.

Steps to reproduce:
1. define a keyboard mapping for ENTER and link it to cm_GoToDir
2. press Alt+F1 or Alt+F2 to select the drive
3. press enter. Instead of changing the drive it will open the selected folder in the focused pane.

Thanks
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Behaviour change for cm_GoToDir

Post by *ghisler(Author) »

It's probably due to this fix:
19.06.23 Fixed: Some redefined hotkeys like Ctrl+L were ignored when the cursor wasn't in one of the file lists. Instead, the original command of that hotkey was executed (32/64)

It's difficult to decide which hotkeys should only work while in a file panel, and which should work also in the command line, drive lists etc.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Behaviour change for cm_GoToDir

Post by *petermad »

License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Behaviour change for cm_GoToDir

Post by *ghisler(Author) »

Currently the following redefined hotkeys are limited to the file panels when defined alone or with shift:
cursor left
cursor right
cursor up
cursor down
page up
page down
home
end
delete
backspace

I will add Enter to that list too. Any others I should add?
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Behaviour change for cm_GoToDir

Post by *petermad »

Perhaps add:
Tab
Space
Insert
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Behaviour change for cm_GoToDir

Post by *petermad »

history.txt wrote:08.09.23 Fixed: Many user-defined hotkeys were restricted to work only in the two file panels, e.g. Ctrl+Alt+Home (changed after 10.52) (32/64)
Not quite fixed.

If Enter is remapped to cm_GoToDir then Enter still does not work in the drive combobox.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Behaviour change for cm_GoToDir

Post by *ghisler(Author) »

It looks like I added the extra keys return, tab, space and insert only to the 32-bit version (it works correctly there).
Can you confirm that?

Btw, the bugfix you quoted is about an entirely different issue:
Hotkeys like Ctrl+Alt+Home ONLY worked in the two panels, but now also work again in the command line.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Behaviour change for cm_GoToDir

Post by *petermad »

only to the 32-bit version (it works correctly there).
Can you confirm that?
Confirmed - I have only tested Enter.

Btw, the bugfix you quoted is about an entirely different issue:
I see - So there is actually no entry in history for the fix (32bit so far) for the bug in this topic?
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Behaviour change for cm_GoToDir

Post by *ghisler(Author) »

Indeed there isn't - I experimented with a fix in 32-bit, but didn't port it over to 64-bit yet because I asked in the forum whether I should add more exceptions, and then didn't get back to this fix.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Behaviour change for cm_GoToDir

Post by *petermad »

history.txt wrote:06.10.23 Fixed: User-defined hotkeys: Handle hotkeys Enter, Tab, Space or Insert in the command line and drive comboboxes as if they were not redefined (64)
Confirmed fixed in TC 11.02rc2 :-)

Moderator message from: petermad » 2023-10-11, 22:47 UTC

Moved to "TC fixed bugs" from "TC11.x bug reports (English)"
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply