Package: geeqie
Version: 1:1.3-1
Followup-For: Bug #779427
Hi. The bug exists on my system too. I made a small patch for the
maintainer to check over.
When escape key is pressed, the "Really continue?" dialog is now
closed, and it is interpreted as cancel as expected.
Kind regards,
Michael
diff --git a/src/ui_utildlg.c b/src/ui_utildlg.c
index 9548a8a..5937875 100644
--- a/src/ui_utildlg.c
+++ b/src/ui_utildlg.c
@@ -99,8 +99,15 @@ static gboolean generic_dialog_key_press_cb(GtkWidget
*widget, GdkEventKey *even
if (event->keyval == GDK_KEY_Escape)
{
- if (gd->cancel_cb) gd->cancel_cb(gd, gd->data);
- else if (auto_close) generic_dialog_click_cb(widget, data);
+ if (gd->cancel_cb)
+ {
+ gd->cancel_cb(gd, gd->data);
+ if (auto_close) generic_dialog_close(gd);
+ }
+ else
+ {
+ if (auto_close) generic_dialog_click_cb(widget, data);
+ }
return TRUE;
}
return FALSE;