Directory menu/hotlist deletes entries if "D" pressed

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
bestia
Junior Member
Junior Member
Posts: 17
Joined: 2003-04-18, 11:02 UTC

Directory menu/hotlist deletes entries if "D" pressed

Post by *bestia »

version 9.22a
I open the "Directory menu" or "Directory hotlist" with Ctrl+D.
Then I press a key to jump to my favorite directory.
It works really well for all the letters from A-Z except the letter D.
If I have for example a "Download" or "Documents" directory:
pressing "D" it will jump to this directory, but it will also DELETE this entry at the same time.
I was wondering for some time how is it possible that some entries disappear from the "Directory menu".
Today I discovered that this is happening only for the "D" letter.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: Directory menu/hotlist deletes entries if "D" pressed

Post by *MVV »

Can't reproduce with neither 9.22a nor 9.50b5 32-bit.

Which LNG do you use? Which character is a shortcut character in your "Remove current dir" menu item?
User avatar
kesdoputr
Member
Member
Posts: 168
Joined: 2007-12-27, 12:38 UTC

Re: Directory menu/hotlist deletes entries if "D" pressed

Post by *kesdoputr »

Same question with the MVV, if you use english menu, deafault should be Remove current dir
And the default hotkey is R

Anyway you can modify your lng file and remove the hotkey(by delete the & before the chara)
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: Directory menu/hotlist deletes entries if "D" pressed

Post by *MVV »

The only nuance here is that when there are two items with same shortcut key, pressing the key should move focus between these items, and there is no "Remove current dir" item before jumping to the folder... So it is a bit strange issue.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Directory menu/hotlist deletes entries if "D" pressed

Post by *ghisler(Author) »

That's how menus behave - if "d" is underlined, pressing 'd' will invoke that menu item.

Solution: Make 'd' the hotkey in one of your entries by placing & in front of a "d" character, e.g.
"My &directory"

Then the menu will jump between the two entries when you press "d".
Author of Total Commander
https://www.ghisler.com
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: Directory menu/hotlist deletes entries if "D" pressed

Post by *Usher »

2ghisler(Author)
Have you considered using shortkeys other than letters/numbers for constant menu items? For example:

Code: Select all

1146="&+ Add current dir"
1147="&- Remove current dir"
1148="&* Configure..."
I think that using +-* is more intuitive as these keys are already used in similar meaning for file selection. What is more, they will be the same characters in all languages and less likely to use in directory list.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Directory menu/hotlist deletes entries if "D" pressed

Post by *ghisler(Author) »

The problem is that the location of these key depends on the used keyboard. Many laptops no longer have a separate numeric keypad.
Author of Total Commander
https://www.ghisler.com
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: Directory menu/hotlist deletes entries if "D" pressed

Post by *Usher »

2ghisler(Author)
It works also for keys entered from the main keyboard part (Shift+=, -, Shift+8). Tested on a notebook which has NO numeric keypad at all, even emulated with Fn.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Re: Directory menu/hotlist deletes entries if "D" pressed

Post by *HolgerK »

That's the reason why my WCMD_ENG.lng contains an entry:
1147="®emove current dir"
to prevent accidental removal of directory hotlist entries.

Regards
Holger
Make our planet great again
Post Reply