From bcc9f89407ed1e632da249623fd63e493439ec39 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 1 Jun 2011 18:35:40 +0200 Subject: Make escape in main window also exit slideshow --- src/mainwindow.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mainwindow.c') diff --git a/src/mainwindow.c b/src/mainwindow.c index 1997951..289e875 100644 --- a/src/mainwindow.c +++ b/src/mainwindow.c @@ -322,6 +322,11 @@ static gboolean key_press_sig(GtkWidget *da, GdkEventKey *event, next_slide_sig(NULL, p); break; + case GDK_KEY_Escape : + if ( p->slideshow != NULL ) end_slideshow(p); + p->editing_object = NULL; + break; + } /* FIXME: Invalidate only the necessary region */ -- cgit v1.2.3