If you changed those to cmd_y
and cmd_n
, you've left yourself without a way to close an error dialog. This should do better:
src/modes/dialogs/msg_dialog.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/modes/dialogs/msg_dialog.c b/src/modes/dialogs/msg_dialog.c
index b78c6b698..00b299dc0 100644
--- a/src/modes/dialogs/msg_dialog.c
+++ b/src/modes/dialogs/msg_dialog.c
@@ -336,7 +336,7 @@ prompt_msg_internal(const char title[], const char message[],
redraw_error_msg(title, message, 0, 0);
- enter(variants == NULL ? MASK(R_YES, R_NO) : 0);
+ enter(variants == NULL ? MASK(R_YES, R_NO, R_OK, R_CANCEL) : 0);
modes_redraw();
}
@@ -691,7 +691,7 @@ confirm_deletion(char *files[], int nfiles, int use_trash)
prompt_msg_internal(title, msg, NULL, 1);
free(msg);
- if(result != R_YES)
+ if(result != R_YES && result != R_OK)
{
return 0;
}