Answer No on Esc in dialogs w/o Cancel button

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

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

Answer No on Esc in dialogs w/o Cancel button

Post by *MVV »

Some dialogs have no Cancel button and we can't close them using Escape. Example - remove buttonbar button question. It is much simpler to answer No using Escape key than using mouse or Tab/Right and Enter.

Is is possible to add this simple thing - if user presses Esc in dialog w/o Cancel button, TC closes dialog and with return value corresponding to present cancelling button in this dialog - No, Ignore, Abort (which is present)?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This is a limitation of the MessageBox function. That's why I sometimes have 3 buttons Yes, No, Cancel, although only Yes and No make sense.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

ghisler(Author) wrote:This is a limitation of the MessageBox function. That's why I sometimes have 3 buttons Yes, No, Cancel, although only Yes and No make sense.
Maybe you may change buttons from Yes-No to OK-Cancel in button bar deletion confirm dialog (or maybe something another)?
Post Reply