folder quick rename

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Infector
Junior Member
Junior Member
Posts: 47
Joined: 2005-11-22, 12:48 UTC
Location: Russia

folder quick rename

Post by *Infector »

1.quick rename folder to alredy exist name
2.get warning about folder alredy exists
3.pres ESC button - result nothing
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, infector.

I fail to see where the bug comes in. :?
In step 2, you do not simply get a warning that the folder already exists. Rather you are asked whether you wish to move the folder which you are trying to rename into the existing folder.
The dialogue box accepts only two answers: yes or no. It simply does not say pressing escape were an answer and it does not accpet escape.
So it works as designed.
Hence you might suggest to enhance the design to also accept escape and to interpret escape like no.

Kind regards,
Karl
Infector
Junior Member
Junior Member
Posts: 47
Joined: 2005-11-22, 12:48 UTC
Location: Russia

Post by *Infector »

Hello, karlchen.

i understand thats not a bug, i think Christian just forgot add ESC for "NO" answer in this dialog.
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hi, infector.

I suspect that the dialogue box used in this context is one of the pre-fabricated Windows dialogue boxes that do not accept the escape key unless a third button displaying the string "abort" is present. This in turn would require translation. "Abort", "Abbrechen", etc , for each supported language.
But in the end, only Christian can tell how much or how little effort will be required to add the escape key to this dialogue box.
(I would also expect the escape key to abort the intended operation just like selecting "no" explicitly.)

Kind regards,
Karl
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Message that appears is standard Windows API message box. Such boxes accept Escape button only if them have Cancel button. Program can't react on keypresses in such message boxes. And, Windows sets button captions in its standard dialogs itself according to OS localization - program can't set custom captions. 'OK', 'Cancel', 'Yes', 'No', 'Abort', 'Help' and some other captions are predefined by Windows. So the only way to support Escape like 'No' in such dialog - is to add third Cancel button to it (maybe it would be more logical to replace Yes and No buttons with OK and Cancel buttons).

BTW same problem exists in many other TC question dialogs. E.g. choose 'Delete' in buttonbar button context menu - same question with 'Yes' and 'No' that doesn't accept Escape. :wink:
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50530
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

That's the reason why I use dialogs with Yes/No/Cancel in some places even if there is no logical meaning of "Cancel". I didn't add it to this specific dialog. Currently it's not planned to add it, sorry.
Author of Total Commander
https://www.ghisler.com
Infector
Junior Member
Junior Member
Posts: 47
Joined: 2005-11-22, 12:48 UTC
Location: Russia

Post by *Infector »

i will cry :cry:
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I think you may use some external tools for closing Yes/No dialogs by Escape.
Post Reply