Make ESC Key abort "Move to Recycle Bin" confirmation prompt

Fix #12117, close #12239
This commit is contained in:
Chukwudumebi Smarty 2022-09-24 22:14:12 -05:00 committed by Don Ho
parent 4b3ee9c4ea
commit dfa6c19d87
2 changed files with 2 additions and 2 deletions

View File

@ -2141,7 +2141,7 @@ int Notepad_plus::doDeleteOrNot(const TCHAR *fn)
_pPublicInterface->getHSelf(),
TEXT("The file \"$STR_REPLACE$\"\rwill be moved to your Recycle Bin and this document will be closed.\rContinue?"),
TEXT("Delete file"),
MB_YESNO | MB_ICONQUESTION | MB_APPLMODAL,
MB_OKCANCEL | MB_ICONQUESTION | MB_APPLMODAL,
0, // not used
fn);
}

View File

@ -1885,7 +1885,7 @@ bool Notepad_plus::fileDelete(BufferID id)
if (winVersion >= WV_WIN8 || winVersion == WV_UNKNOWN)
{
// Windows 8 (and version afer?) has no system alert, so we ask user's confirmation
goAhead = (doDeleteOrNot(fileNamePath) == IDYES);
goAhead = (doDeleteOrNot(fileNamePath) == IDOK);
}
if (goAhead)